#4F23B1#4F23B1

#4F23B1 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.6% C 0.204 H 288.1°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#4F23B1
RGBrgb(79, 35, 177)
HSLhsl(259, 67%, 42%)
HSVhsv(259, 80%, 69%)
CMYKcmyk(55.4%, 80.2%, 0%, 30.6%)
CIE-LABlab(29.51, 52.99, -67.28)
CIE-LCHlch(29.51, 85.64, 308.22°)
OKLaboklab(41.65% 0.0632 -0.1936)
OKLCHoklch(41.65% 0.204 288.1)
XYZxyz(11.7589, 6.0380, 42.1323)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F23B1 #85B123
analogous
#233EB1 #4F23B1 #9623B1
triadic
#4F23B1 #B14F23 #23B14F
tetradic
#4F23B1 #B1233E #85B123 #23B196
square
#4F23B1 #B1233E #85B123 #23B196
split-complementary
#4F23B1 #B19623 #3EB123
monochromatic
#210F4B #38197E #4F23B1 #6A39D8 #916CE2

Accessibility & contrast

On white

9.51
#4F23B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4F23B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F23B1
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F23B1#FFFFFF#000000##FFFFFF
##4F23B11.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B5
Deuteranopia (green-blind)
#0042AE
Tritanopia (blue-blind)
#254D6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f23b1;
/* rgb */ color: rgb(79, 35, 177);
/* oklch */ color: oklch(41.6% 0.204 288.1);
Tailwind
colors: {
  custom: {
    50: '#8c64ca',
    500: '#4f23b1',
    950: '#000000',
  },
}
SCSS
$custom: #4f23b1;
$custom-light: #8c64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f23b1",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 258.592,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41645,
    "c": 0.20367,
    "h": 288.1
  },
  "luminance": 0.06039
}

Semantic roles & 50–950 ramp

primary
#4F23B1
secondary
#AAC868
accent
#EA3EB5
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F23B1

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

Preview Lab → · Contrast checker → · Palette generator →

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