#7B238F#7B238F

#7B238F is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.3% C 0.178 H 319.4°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#7B238F
RGBrgb(123, 35, 143)
HSLhsl(289, 61%, 35%)
HSVhsv(289, 76%, 56%)
CMYKcmyk(14%, 75.5%, 0%, 43.9%)
CIE-LABlab(32.69, 52.44, -41.21)
CIE-LCHlch(32.69, 66.69, 321.84°)
OKLaboklab(44.29% 0.135 -0.1156)
OKLCHoklch(44.29% 0.178 319.4)
XYZxyz(13.7267, 7.3969, 26.6860)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B238F #378F23
analogous
#45238F #7B238F #8F236D
triadic
#7B238F #8F7B23 #238F7B
tetradic
#7B238F #8F4523 #378F23 #236D8F
square
#7B238F #8F4523 #378F23 #236D8F
split-complementary
#7B238F #6D8F23 #238F45
monochromatic
#260B2D #51175E #7B238F #A52FC0 #BE57D6

Accessibility & contrast

On white

8.47
#7B238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7B238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B238F
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B238F#FFFFFF#000000##FFFFFF
##7B238F1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#2B508D
Tritanopia (blue-blind)
#7B3957
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7b238f;
/* rgb */ color: rgb(123, 35, 143);
/* oklch */ color: oklch(44.3% 0.178 319.4);
Tailwind
colors: {
  custom: {
    50: '#a568b0',
    500: '#7b238f',
    950: '#000000',
  },
}
SCSS
$custom: #7b238f;
$custom-light: #a568b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b238f",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 288.889,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44292,
    "c": 0.17771,
    "h": 319.4
  },
  "luminance": 0.07396
}

Semantic roles & 50–950 ramp

primary
#7B238F
secondary
#67BA54
accent
#E44462
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B238F

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

Preview Lab → · Contrast checker → · Palette generator →

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