#7B238E#7B238E

#7B238E is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.177 H 319.8°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#7B238E
RGBrgb(123, 35, 142)
HSLhsl(289, 60%, 35%)
HSVhsv(289, 75%, 56%)
CMYKcmyk(13.4%, 75.4%, 0%, 44.3%)
CIE-LABlab(32.63, 52.25, -40.70)
CIE-LCHlch(32.63, 66.23, 322.08°)
OKLaboklab(44.22% 0.1351 -0.1141)
OKLCHoklch(44.22% 0.177 319.8)
XYZxyz(13.6513, 7.3667, 26.2888)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B238E #368E23
analogous
#46238E #7B238E #8E236C
triadic
#7B238E #8E7B23 #238E7B
tetradic
#7B238E #8E4623 #368E23 #236C8E
square
#7B238E #8E4623 #368E23 #236C8E
split-complementary
#7B238E #6C8E23 #238E46
monochromatic
#260B2C #50175D #7B238E #A62FBF #BF56D5

Accessibility & contrast

On white

8.49
#7B238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B238E
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B238E#FFFFFF#000000##FFFFFF
##7B238E1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#2C508C
Tritanopia (blue-blind)
#7B3857
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b238e;
/* rgb */ color: rgb(123, 35, 142);
/* oklch */ color: oklch(44.2% 0.177 319.8);
Tailwind
colors: {
  custom: {
    50: '#a568b0',
    500: '#7b238e',
    950: '#000000',
  },
}
SCSS
$custom: #7b238e;
$custom-light: #a568b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b238e",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 289.346,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44223,
    "c": 0.17682,
    "h": 319.8
  },
  "luminance": 0.07366
}

Semantic roles & 50–950 ramp

primary
#7B238E
secondary
#65B953
accent
#E44461
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B238E

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

Preview Lab → · Contrast checker → · Palette generator →

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