#7A238B#7A238B

#7A238B is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.174 H 320.5°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#7A238B
RGBrgb(122, 35, 139)
HSLhsl(290, 60%, 34%)
HSVhsv(290, 75%, 55%)
CMYKcmyk(12.2%, 74.8%, 0%, 45.5%)
CIE-LABlab(32.27, 51.44, -39.43)
CIE-LCHlch(32.27, 64.82, 322.53°)
OKLaboklab(43.87% 0.1341 -0.1104)
OKLCHoklch(43.87% 0.174 320.5)
XYZxyz(13.2867, 7.2044, 25.1118)
Luminance0.0720 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A238B #348B23
analogous
#46238B #7A238B #8B2368
triadic
#7A238B #8B7A23 #238B7A
tetradic
#7A238B #8B4623 #348B23 #23688B
square
#7A238B #8B4623 #348B23 #23688B
split-complementary
#7A238B #688B23 #238B46
monochromatic
#240A29 #4F175A #7A238B #A52FBC #BF54D4

Accessibility & contrast

On white

8.60
#7A238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7A238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A238B
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A238B#FFFFFF#000000##FFFFFF
##7A238B1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#2E4F89
Tritanopia (blue-blind)
#7B3755
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a238b;
/* rgb */ color: rgb(122, 35, 139);
/* oklch */ color: oklch(43.9% 0.174 320.5);
Tailwind
colors: {
  custom: {
    50: '#a467ad',
    500: '#7a238b',
    950: '#000000',
  },
}
SCSS
$custom: #7a238b;
$custom-light: #a467ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7a238b",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 290.192,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.43872,
    "c": 0.17371,
    "h": 320.5
  },
  "luminance": 0.07204
}

Semantic roles & 50–950 ramp

primary
#7A238B
secondary
#63B852
accent
#E3455F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7A238B

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

Preview Lab → · Contrast checker → · Palette generator →

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