#7B236D#7B236D

#7B236D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.2% C 0.149 H 335.0°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#7B236D
RGBrgb(123, 35, 109)
HSLhsl(310, 56%, 31%)
HSVhsv(310, 72%, 48%)
CMYKcmyk(0%, 71.5%, 11.4%, 51.8%)
CIE-LABlab(30.68, 46.29, -23.07)
CIE-LCHlch(30.68, 51.72, 333.51°)
OKLaboklab(42.2% 0.1348 -0.063)
OKLCHoklch(42.2% 0.149 335)
XYZxyz(11.5298, 6.5181, 15.1159)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B236D #237B31
analogous
#5D237B #7B236D #7B2341
triadic
#7B236D #6D7B23 #236D7B
tetradic
#7B236D #7B5D23 #237B31 #23417B
square
#7B236D #7B5D23 #237B31 #23417B
split-complementary
#7B236D #417B23 #237B5D
monochromatic
#1C0819 #4B1543 #7B236D #AB3197 #CC4CB8

Accessibility & contrast

On white

9.12
#7B236D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7B236D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B236D
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B236D#FFFFFF#000000##FFFFFF
##7B236D1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23406F
Deuteranopia (green-blind)
#414D6B
Tritanopia (blue-blind)
#812A45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b236d;
/* rgb */ color: rgb(123, 35, 109);
/* oklch */ color: oklch(42.2% 0.149 335.0);
Tailwind
colors: {
  custom: {
    50: '#a46697',
    500: '#7b236d',
    950: '#000000',
  },
}
SCSS
$custom: #7b236d;
$custom-light: #a46697;
$custom-dark: #000000;
JSON
{
  "hex": "#7b236d",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 109
  },
  "hsl": {
    "h": 309.545,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42202,
    "c": 0.14881,
    "h": 335
  },
  "luminance": 0.06517
}

Semantic roles & 50–950 ramp

primary
#7B236D
secondary
#4CAE5C
accent
#DF6149
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B236D

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

Preview Lab → · Contrast checker → · Palette generator →

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