#7E236F#7E236F

#7E236F is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.8% C 0.152 H 335.3°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#7E236F
RGBrgb(126, 35, 111)
HSLhsl(310, 57%, 32%)
HSVhsv(310, 72%, 49%)
CMYKcmyk(0%, 72.2%, 11.9%, 50.6%)
CIE-LABlab(31.32, 47.40, -23.32)
CIE-LCHlch(31.32, 52.83, 333.81°)
OKLaboklab(42.8% 0.1384 -0.0636)
OKLCHoklch(42.8% 0.152 335.3)
XYZxyz(12.0746, 6.7864, 15.7098)
Luminance0.0678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E236F #237E32
analogous
#60237E #7E236F #7E2342
triadic
#7E236F #6F7E23 #236F7E
tetradic
#7E236F #7E6023 #237E32 #23427E
square
#7E236F #7E6023 #237E32 #23427E
split-complementary
#7E236F #427E23 #237E60
monochromatic
#1E081B #4E1645 #7E236F #AE3099 #CE4EB9

Accessibility & contrast

On white

8.91
#7E236F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E236F
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E236F#FFFFFF#000000##FFFFFF
##7E236F1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234171
Deuteranopia (green-blind)
#424F6D
Tritanopia (blue-blind)
#842A46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e236f;
/* rgb */ color: rgb(126, 35, 111);
/* oklch */ color: oklch(42.8% 0.152 335.3);
Tailwind
colors: {
  custom: {
    50: '#a66798',
    500: '#7e236f',
    950: '#000000',
  },
}
SCSS
$custom: #7e236f;
$custom-light: #a66798;
$custom-dark: #000000;
JSON
{
  "hex": "#7e236f",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 111
  },
  "hsl": {
    "h": 309.89,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42795,
    "c": 0.15227,
    "h": 335.3
  },
  "luminance": 0.06785
}

Semantic roles & 50–950 ramp

primary
#7E236F
secondary
#4CB05D
accent
#E06148
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E236F

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

Preview Lab → · Contrast checker → · Palette generator →

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