#7A236D#7A236D

#7A236D is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.0% C 0.148 H 334.5°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#7A236D
RGBrgb(122, 35, 109)
HSLhsl(309, 55%, 31%)
HSVhsv(309, 71%, 48%)
CMYKcmyk(0%, 71.3%, 10.7%, 52.2%)
CIE-LABlab(30.51, 46.03, -23.36)
CIE-LCHlch(30.51, 51.61, 333.09°)
OKLaboklab(42.04% 0.1337 -0.0638)
OKLCHoklch(42.04% 0.148 334.5)
XYZxyz(11.3875, 6.4447, 15.1092)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A236D #237A30
analogous
#5B237A #7A236D #7A2341
triadic
#7A236D #6D7A23 #236D7A
tetradic
#7A236D #7A5B23 #237A30 #23417A
square
#7A236D #7A5B23 #237A30 #23417A
split-complementary
#7A236D #417A23 #237A5B
monochromatic
#1B0818 #4A1543 #7A236D #AA3197 #CC4CB8

Accessibility & contrast

On white

9.18
#7A236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7A236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A236D
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A236D#FFFFFF#000000##FFFFFF
##7A236D1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22406F
Deuteranopia (green-blind)
#404C6B
Tritanopia (blue-blind)
#802A45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a236d;
/* rgb */ color: rgb(122, 35, 109);
/* oklch */ color: oklch(42.0% 0.148 334.5);
Tailwind
colors: {
  custom: {
    50: '#a36697',
    500: '#7a236d',
    950: '#000000',
  },
}
SCSS
$custom: #7a236d;
$custom-light: #a36697;
$custom-dark: #000000;
JSON
{
  "hex": "#7a236d",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 308.966,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42041,
    "c": 0.14817,
    "h": 334.5
  },
  "luminance": 0.06444
}

Semantic roles & 50–950 ramp

primary
#7A236D
secondary
#4CAD5B
accent
#DF5F49
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #7A236D

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

Preview Lab → · Contrast checker → · Palette generator →

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