#7E237D#7E237D

#7E237D is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.6% C 0.164 H 328.4°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#7E237D
RGBrgb(126, 35, 125)
HSLhsl(301, 57%, 32%)
HSVhsv(301, 72%, 49%)
CMYKcmyk(0%, 72.2%, 0.8%, 50.6%)
CIE-LABlab(32.08, 49.77, -30.97)
CIE-LCHlch(32.08, 58.62, 328.10°)
OKLaboklab(43.59% 0.1393 -0.0857)
OKLCHoklch(43.59% 0.164 328.4)
XYZxyz(12.9067, 7.1193, 20.0924)
Luminance0.0712 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E237D #237E24
analogous
#52237E #7E237D #7E2350
triadic
#7E237D #7D7E23 #237D7E
tetradic
#7E237D #7E5223 #237E24 #23507E
square
#7E237D #7E5223 #237E24 #23507E
split-complementary
#7E237D #507E23 #237E52
monochromatic
#1E081E #4E164D #7E237D #AE30AD #CE4ECC

Accessibility & contrast

On white

8.66
#7E237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7E237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E237D
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E237D#FFFFFF#000000##FFFFFF
##7E237D1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154480
Deuteranopia (green-blind)
#3B507B
Tritanopia (blue-blind)
#82304D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e237d;
/* rgb */ color: rgb(126, 35, 125);
/* oklch */ color: oklch(43.6% 0.164 328.4);
Tailwind
colors: {
  custom: {
    50: '#a667a3',
    500: '#7e237d',
    950: '#000000',
  },
}
SCSS
$custom: #7e237d;
$custom-light: #a667a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e237d",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 300.659,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43591,
    "c": 0.16352,
    "h": 328.4
  },
  "luminance": 0.07118
}

Semantic roles & 50–950 ramp

primary
#7E237D
secondary
#4CB04D
accent
#E04A48
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E237D

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

Preview Lab → · Contrast checker → · Palette generator →

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