#7B238A#7B238A

#7B238A is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.173 H 321.4°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#7B238A
RGBrgb(123, 35, 138)
HSLhsl(291, 60%, 34%)
HSVhsv(291, 75%, 54%)
CMYKcmyk(10.9%, 74.6%, 0%, 45.9%)
CIE-LABlab(32.37, 51.47, -38.64)
CIE-LCHlch(32.37, 64.36, 323.10°)
OKLaboklab(43.95% 0.1354 -0.1081)
OKLCHoklch(43.95% 0.173 321.4)
XYZxyz(13.3563, 7.2487, 24.7355)
Luminance0.0725 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B238A #328A23
analogous
#48238A #7B238A #8A2366
triadic
#7B238A #8A7B23 #238A7B
tetradic
#7B238A #8A4823 #328A23 #23668A
square
#7B238A #8A4823 #328A23 #23668A
split-complementary
#7B238A #668A23 #238A48
monochromatic
#240A28 #4F1759 #7B238A #A72FBB #C154D4

Accessibility & contrast

On white

8.57
#7B238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7B238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B238A
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B238A#FFFFFF#000000##FFFFFF
##7B238A1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#304F88
Tritanopia (blue-blind)
#7C3755
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b238a;
/* rgb */ color: rgb(123, 35, 138);
/* oklch */ color: oklch(44.0% 0.173 321.4);
Tailwind
colors: {
  custom: {
    50: '#a567ad',
    500: '#7b238a',
    950: '#000000',
  },
}
SCSS
$custom: #7b238a;
$custom-light: #a567ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b238a",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 291.262,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.43954,
    "c": 0.17326,
    "h": 321.4
  },
  "luminance": 0.07248
}

Semantic roles & 50–950 ramp

primary
#7B238A
secondary
#60B751
accent
#E3455C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B238A

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

Preview Lab → · Contrast checker → · Palette generator →

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