#7E237F#7E237F

#7E237F is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.7% C 0.165 H 327.5°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#7E237F
RGBrgb(126, 35, 127)
HSLhsl(299, 57%, 32%)
HSVhsv(299, 72%, 50%)
CMYKcmyk(0.8%, 72.4%, 0%, 50.2%)
CIE-LABlab(32.19, 50.12, -32.04)
CIE-LCHlch(32.19, 59.49, 327.41°)
OKLaboklab(43.71% 0.1393 -0.0888)
OKLCHoklch(43.71% 0.165 327.5)
XYZxyz(13.0358, 7.1709, 20.7721)
Luminance0.0717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E237F #247F23
analogous
#50237F #7E237F #7F2352
triadic
#7E237F #7F7E23 #237F7E
tetradic
#7E237F #7F5023 #247F23 #23527F
square
#7E237F #7F5023 #247F23 #23527F
split-complementary
#7E237F #527F23 #237F50
monochromatic
#1F091F #4E164F #7E237F #AE30AF #CD4ECE

Accessibility & contrast

On white

8.63
#7E237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7E237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E237F
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E237F#FFFFFF#000000##FFFFFF
##7E237F1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124482
Deuteranopia (green-blind)
#3A507D
Tritanopia (blue-blind)
#82314E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e237f;
/* rgb */ color: rgb(126, 35, 127);
/* oklch */ color: oklch(43.7% 0.165 327.5);
Tailwind
colors: {
  custom: {
    50: '#a767a4',
    500: '#7e237f',
    950: '#000000',
  },
}
SCSS
$custom: #7e237f;
$custom-light: #a767a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e237f",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 299.348,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.43711,
    "c": 0.16519,
    "h": 327.5
  },
  "luminance": 0.0717
}

Semantic roles & 50–950 ramp

primary
#7E237F
secondary
#4EB14C
accent
#E04849
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E237F

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

Preview Lab → · Contrast checker → · Palette generator →

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