#7B238B#7B238B

#7B238B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.0% C 0.174 H 321.0°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#7B238B
RGBrgb(123, 35, 139)
HSLhsl(291, 60%, 34%)
HSVhsv(291, 75%, 55%)
CMYKcmyk(11.5%, 74.8%, 0%, 45.5%)
CIE-LABlab(32.43, 51.66, -39.16)
CIE-LCHlch(32.43, 64.83, 322.84°)
OKLaboklab(44.02% 0.1353 -0.1096)
OKLCHoklch(44.02% 0.174 321)
XYZxyz(13.4291, 7.2778, 25.1185)
Luminance0.0728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B238B #338B23
analogous
#47238B #7B238B #8B2367
triadic
#7B238B #8B7B23 #238B7B
tetradic
#7B238B #8B4723 #338B23 #23678B
square
#7B238B #8B4723 #338B23 #23678B
split-complementary
#7B238B #678B23 #238B47
monochromatic
#240A29 #50175A #7B238B #A62FBC #C054D4

Accessibility & contrast

On white

8.55
#7B238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7B238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B238B
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B238B#FFFFFF#000000##FFFFFF
##7B238B1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#2F4F89
Tritanopia (blue-blind)
#7C3755
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7b238b;
/* rgb */ color: rgb(123, 35, 139);
/* oklch */ color: oklch(44.0% 0.174 321.0);
Tailwind
colors: {
  custom: {
    50: '#a567ad',
    500: '#7b238b',
    950: '#000000',
  },
}
SCSS
$custom: #7b238b;
$custom-light: #a567ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b238b",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 290.769,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44021,
    "c": 0.17415,
    "h": 321
  },
  "luminance": 0.07277
}

Semantic roles & 50–950 ramp

primary
#7B238B
secondary
#62B852
accent
#E3455D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7B238B

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

Preview Lab → · Contrast checker → · Palette generator →

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