#4B239D#4B239D

#4B239D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.181 H 290.4°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#4B239D
RGBrgb(75, 35, 157)
HSLhsl(260, 64%, 38%)
HSVhsv(260, 78%, 62%)
CMYKcmyk(52.2%, 77.7%, 0%, 38.4%)
CIE-LABlab(27.11, 46.94, -59.17)
CIE-LCHlch(27.11, 75.53, 308.42°)
OKLaboklab(39.28% 0.0632 -0.17)
OKLCHoklch(39.28% 0.181 290.4)
XYZxyz(9.5867, 5.1318, 32.3772)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B239D #759D23
analogous
#23389D #4B239D #88239D
triadic
#4B239D #9D4B23 #239D4B
tetradic
#4B239D #9D2338 #759D23 #239D88
square
#4B239D #9D2338 #759D23 #239D88
split-complementary
#4B239D #9D8823 #389D23
monochromatic
#1B0D39 #33186B #4B239D #632ECF #885FDB

Accessibility & contrast

On white

10.36
#4B239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4B239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B239D
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B239D#FFFFFF#000000##FFFFFF
##4B239D1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#2D455F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4b239d;
/* rgb */ color: rgb(75, 35, 157);
/* oklch */ color: oklch(39.3% 0.181 290.4);
Tailwind
colors: {
  custom: {
    50: '#8663bb',
    500: '#4b239d',
    950: '#000000',
  },
}
SCSS
$custom: #4b239d;
$custom-light: #8663bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4b239d",
  "rgb": {
    "r": 75,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 259.672,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39279,
    "c": 0.18139,
    "h": 290.4
  },
  "luminance": 0.05132
}

Semantic roles & 50–950 ramp

primary
#4B239D
secondary
#9FC05C
accent
#E741B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4B239D

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

Preview Lab → · Contrast checker → · Palette generator →

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