#4B237A#4B237A

#4B237A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.140 H 300.5°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#4B237A
RGBrgb(75, 35, 122)
HSLhsl(268, 55%, 31%)
HSVhsv(268, 71%, 48%)
CMYKcmyk(38.5%, 71.3%, 0%, 52.2%)
CIE-LABlab(24.01, 37.28, -42.45)
CIE-LCHlch(24.01, 56.49, 311.29°)
OKLaboklab(36.13% 0.0713 -0.1209)
OKLCHoklch(36.13% 0.14 300.5)
XYZxyz(7.0147, 4.1030, 18.8310)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B237A #527A23
analogous
#23267A #4B237A #76237A
triadic
#4B237A #7A4B23 #237A4B
tetradic
#4B237A #7A2326 #527A23 #237A76
square
#4B237A #7A2326 #527A23 #237A76
split-complementary
#4B237A #7A7623 #267A23
monochromatic
#11081B #2E154A #4B237A #6831AA #874CCC

Accessibility & contrast

On white

11.53
#4B237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4B237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B237A
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B237A#FFFFFF#000000##FFFFFF
##4B237A1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#41374B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4b237a;
/* rgb */ color: rgb(75, 35, 122);
/* oklch */ color: oklch(36.1% 0.140 300.5);
Tailwind
colors: {
  custom: {
    50: '#8261a1',
    500: '#4b237a',
    950: '#000000',
  },
}
SCSS
$custom: #4b237a;
$custom-light: #8261a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4b237a",
  "rgb": {
    "r": 75,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 267.586,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36133,
    "c": 0.14042,
    "h": 300.5
  },
  "luminance": 0.04103
}

Semantic roles & 50–950 ramp

primary
#4B237A
secondary
#80AD4C
accent
#DF499A
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4B237A

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

Preview Lab → · Contrast checker → · Palette generator →

#4B237A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva