#4B239B#4B239B

#4B239B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.179 H 290.8°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#4B239B
RGBrgb(75, 35, 155)
HSLhsl(260, 63%, 37%)
HSVhsv(260, 77%, 61%)
CMYKcmyk(51.6%, 77.4%, 0%, 39.2%)
CIE-LABlab(26.92, 46.38, -58.26)
CIE-LCHlch(26.92, 74.47, 308.52°)
OKLaboklab(39.09% 0.0637 -0.1674)
OKLCHoklch(39.09% 0.179 290.8)
XYZxyz(9.4174, 5.0641, 31.4853)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B239B #739B23
analogous
#23379B #4B239B #87239B
triadic
#4B239B #9B4B23 #239B4B
tetradic
#4B239B #9B2337 #739B23 #239B87
square
#4B239B #9B2337 #739B23 #239B87
split-complementary
#4B239B #9B8723 #379B23
monochromatic
#1B0C37 #331869 #4B239B #632ECD #875EDB

Accessibility & contrast

On white

10.43
#4B239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4B239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B239B
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B239B#FFFFFF#000000##FFFFFF
##4B239B1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003D99
Tritanopia (blue-blind)
#2F445E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4b239b;
/* rgb */ color: rgb(75, 35, 155);
/* oklch */ color: oklch(39.1% 0.179 290.8);
Tailwind
colors: {
  custom: {
    50: '#8663ba',
    500: '#4b239b',
    950: '#000000',
  },
}
SCSS
$custom: #4b239b;
$custom-light: #8663ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4b239b",
  "rgb": {
    "r": 75,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 260,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39088,
    "c": 0.1791,
    "h": 290.8
  },
  "luminance": 0.05064
}

Semantic roles & 50–950 ramp

primary
#4B239B
secondary
#9EBF5A
accent
#E642AF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4B239B

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

Preview Lab → · Contrast checker → · Palette generator →

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