#48237C#48237C

#48237C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.142 H 297.8°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#48237C
RGBrgb(72, 35, 124)
HSLhsl(265, 56%, 31%)
HSVhsv(265, 72%, 49%)
CMYKcmyk(41.9%, 71.8%, 0%, 51.4%)
CIE-LABlab(23.79, 37.19, -44.10)
CIE-LCHlch(23.79, 57.69, 310.15°)
OKLaboklab(35.94% 0.0664 -0.1259)
OKLCHoklch(35.94% 0.142 297.8)
XYZxyz(6.9107, 4.0349, 19.4796)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#48237C #577C23
analogous
#232A7C #48237C #74237C
triadic
#48237C #7C4823 #237C48
tetradic
#48237C #7C232A #577C23 #237C74
square
#48237C #7C232A #577C23 #237C74
split-complementary
#48237C #7C7423 #2A7C23
monochromatic
#11081D #2C164C #48237C #6430AC #824DCD

Accessibility & contrast

On white

11.62
#48237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#48237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #48237C
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##48237C#FFFFFF#000000##FFFFFF
##48237C1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#3B394C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #48237c;
/* rgb */ color: rgb(72, 35, 124);
/* oklch */ color: oklch(35.9% 0.142 297.8);
Tailwind
colors: {
  custom: {
    50: '#8061a3',
    500: '#48237c',
    950: '#000000',
  },
}
SCSS
$custom: #48237c;
$custom-light: #8061a3;
$custom-dark: #000000;
JSON
{
  "hex": "#48237c",
  "rgb": {
    "r": 72,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 264.944,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35939,
    "c": 0.14236,
    "h": 297.8
  },
  "luminance": 0.04035
}

Semantic roles & 50–950 ramp

primary
#48237C
secondary
#86AF4C
accent
#DF49A1
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #48237C

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

Preview Lab → · Contrast checker → · Palette generator →

#48237C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva