#7A237D#7A237D

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

Color values

HEX#7A237D
RGBrgb(122, 35, 125)
HSLhsl(298, 56%, 31%)
HSVhsv(298, 72%, 49%)
CMYKcmyk(2.4%, 72%, 0%, 51%)
CIE-LABlab(31.40, 48.81, -32.10)
CIE-LCHlch(31.40, 58.41, 326.67°)
OKLaboklab(42.97% 0.1346 -0.089)
OKLCHoklch(42.97% 0.161 326.5)
XYZxyz(12.3285, 6.8211, 20.0653)
Luminance0.0682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A237D #267D23
analogous
#4D237D #7A237D #7D2353
triadic
#7A237D #7D7A23 #237D7A
tetradic
#7A237D #7D4D23 #267D23 #23537D
square
#7A237D #7D4D23 #267D23 #23537D
split-complementary
#7A237D #537D23 #237D4D
monochromatic
#1D081D #4B164D #7A237D #A930AD #C94DCD

Accessibility & contrast

On white

8.88
#7A237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A237D
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A237D#FFFFFF#000000##FFFFFF
##7A237D1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104380
Deuteranopia (green-blind)
#384E7B
Tritanopia (blue-blind)
#7D314D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a237d;
/* rgb */ color: rgb(122, 35, 125);
/* oklch */ color: oklch(43.0% 0.161 326.5);
Tailwind
colors: {
  custom: {
    50: '#a367a3',
    500: '#7a237d',
    950: '#000000',
  },
}
SCSS
$custom: #7a237d;
$custom-light: #a367a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a237d",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 298,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42969,
    "c": 0.16141,
    "h": 326.5
  },
  "luminance": 0.0682
}

Semantic roles & 50–950 ramp

primary
#7A237D
secondary
#50AF4C
accent
#E0484D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #7A237D

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

Preview Lab → · Contrast checker → · Palette generator →

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