#7A239B#7A239B

#7A239B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.188 H 314.6°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#7A239B
RGBrgb(122, 35, 155)
HSLhsl(284, 63%, 37%)
HSVhsv(284, 77%, 61%)
CMYKcmyk(21.3%, 77.4%, 0%, 39.2%)
CIE-LABlab(33.36, 54.65, -47.48)
CIE-LCHlch(33.36, 72.39, 319.02°)
OKLaboklab(45% 0.1321 -0.134)
OKLCHoklch(45% 0.188 314.6)
XYZxyz(14.5425, 7.7067, 31.7255)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A239B #449B23
analogous
#3E239B #7A239B #9B2380
triadic
#7A239B #9B7A23 #239B7A
tetradic
#7A239B #9B3E23 #449B23 #23809B
square
#7A239B #9B3E23 #449B23 #23809B
split-complementary
#7A239B #809B23 #239B3E
monochromatic
#2B0C37 #531869 #7A239B #A12ECD #B85EDB

Accessibility & contrast

On white

8.26
#7A239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7A239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A239B
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A239B#FFFFFF#000000##FFFFFF
##7A239B1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#1B5198
Tritanopia (blue-blind)
#773E5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7a239b;
/* rgb */ color: rgb(122, 35, 155);
/* oklch */ color: oklch(45.0% 0.188 314.6);
Tailwind
colors: {
  custom: {
    50: '#a568b9',
    500: '#7a239b',
    950: '#000000',
  },
}
SCSS
$custom: #7a239b;
$custom-light: #a568b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a239b",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 283.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44999,
    "c": 0.18819,
    "h": 314.6
  },
  "luminance": 0.07706
}

Semantic roles & 50–950 ramp

primary
#7A239B
secondary
#76BF5A
accent
#E6426F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A239B

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

Preview Lab → · Contrast checker → · Palette generator →

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