#7A237C#7A237C

#7A237C is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.161 H 327.0°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#7A237C
RGBrgb(122, 35, 124)
HSLhsl(299, 56%, 31%)
HSVhsv(299, 72%, 49%)
CMYKcmyk(1.6%, 71.8%, 0%, 51.4%)
CIE-LABlab(31.34, 48.63, -31.56)
CIE-LCHlch(31.34, 57.97, 327.01°)
OKLaboklab(42.91% 0.1346 -0.0875)
OKLCHoklch(42.91% 0.161 327)
XYZxyz(12.2650, 6.7957, 19.7306)
Luminance0.0679 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A237C #257C23
analogous
#4D237C #7A237C #7C2351
triadic
#7A237C #7C7A23 #237C7A
tetradic
#7A237C #7C4D23 #257C23 #23517C
square
#7A237C #7C4D23 #257C23 #23517C
split-complementary
#7A237C #517C23 #237C4D
monochromatic
#1C081D #4B164C #7A237C #A930AC #CA4DCD

Accessibility & contrast

On white

8.90
#7A237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7A237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A237C
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A237C#FFFFFF#000000##FFFFFF
##7A237C1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12437F
Deuteranopia (green-blind)
#384E7A
Tritanopia (blue-blind)
#7E314D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a237c;
/* rgb */ color: rgb(122, 35, 124);
/* oklch */ color: oklch(42.9% 0.161 327.0);
Tailwind
colors: {
  custom: {
    50: '#a367a2',
    500: '#7a237c',
    950: '#000000',
  },
}
SCSS
$custom: #7a237c;
$custom-light: #a367a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a237c",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 298.652,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42908,
    "c": 0.16056,
    "h": 327
  },
  "luminance": 0.06795
}

Semantic roles & 50–950 ramp

primary
#7A237C
secondary
#4EAF4C
accent
#DF494C
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #7A237C

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

Preview Lab → · Contrast checker → · Palette generator →

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