#7B238D#7B238D

#7B238D is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.176 H 320.2°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#7B238D
RGBrgb(123, 35, 141)
HSLhsl(290, 60%, 35%)
HSVhsv(290, 75%, 55%)
CMYKcmyk(12.8%, 75.2%, 0%, 44.7%)
CIE-LABlab(32.56, 52.05, -40.19)
CIE-LCHlch(32.56, 65.76, 322.33°)
OKLaboklab(44.16% 0.1352 -0.1126)
OKLCHoklch(44.16% 0.176 320.2)
XYZxyz(13.5765, 7.3368, 25.8952)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B238D #358D23
analogous
#46238D #7B238D #8D236A
triadic
#7B238D #8D7B23 #238D7B
tetradic
#7B238D #8D4623 #358D23 #236A8D
square
#7B238D #8D4623 #358D23 #236A8D
split-complementary
#7B238D #6A8D23 #238D46
monochromatic
#250B2B #50175C #7B238D #A62FBE #BF55D5

Accessibility & contrast

On white

8.51
#7B238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7B238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B238D
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B238D#FFFFFF#000000##FFFFFF
##7B238D1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#2D508B
Tritanopia (blue-blind)
#7B3856
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b238d;
/* rgb */ color: rgb(123, 35, 141);
/* oklch */ color: oklch(44.2% 0.176 320.2);
Tailwind
colors: {
  custom: {
    50: '#a568af',
    500: '#7b238d',
    950: '#000000',
  },
}
SCSS
$custom: #7b238d;
$custom-light: #a568af;
$custom-dark: #000000;
JSON
{
  "hex": "#7b238d",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 289.811,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.44156,
    "c": 0.17592,
    "h": 320.2
  },
  "luminance": 0.07336
}

Semantic roles & 50–950 ramp

primary
#7B238D
secondary
#64B953
accent
#E3445F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B238D

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

Preview Lab → · Contrast checker → · Palette generator →

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