#7A239F#7A239F

#7A239F is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.192 H 313.2°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7A239F
RGBrgb(122, 35, 159)
HSLhsl(282, 64%, 38%)
HSVhsv(282, 78%, 62%)
CMYKcmyk(23.3%, 78%, 0%, 37.6%)
CIE-LABlab(33.65, 55.48, -49.44)
CIE-LCHlch(33.65, 74.31, 318.29°)
OKLaboklab(45.3% 0.1314 -0.1398)
OKLCHoklch(45.3% 0.192 313.2)
XYZxyz(14.8840, 7.8433, 33.5240)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A239F #489F23
analogous
#3C239F #7A239F #9F2386
triadic
#7A239F #9F7A23 #239F7A
tetradic
#7A239F #9F3C23 #489F23 #23869F
square
#7A239F #9F3C23 #489F23 #23869F
split-complementary
#7A239F #869F23 #239F3C
monochromatic
#2D0D3B #54186D #7A239F #A02ED1 #B760DC

Accessibility & contrast

On white

8.18
#7A239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7A239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A239F
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A239F#FFFFFF#000000##FFFFFF
##7A239F1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#14519C
Tritanopia (blue-blind)
#764060
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7a239f;
/* rgb */ color: rgb(122, 35, 159);
/* oklch */ color: oklch(45.3% 0.192 313.2);
Tailwind
colors: {
  custom: {
    50: '#a568bc',
    500: '#7a239f',
    950: '#000000',
  },
}
SCSS
$custom: #7a239f;
$custom-light: #a568bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a239f",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 282.097,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45295,
    "c": 0.19187,
    "h": 313.2
  },
  "luminance": 0.07843
}

Semantic roles & 50–950 ramp

primary
#7A239F
secondary
#7BC15D
accent
#E74172
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A239F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#7A239F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva