#4F23B2#4F23B2

#4F23B2 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.7% C 0.205 H 287.9°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#4F23B2
RGBrgb(79, 35, 178)
HSLhsl(258, 67%, 42%)
HSVhsv(258, 80%, 70%)
CMYKcmyk(55.6%, 80.3%, 0%, 30.2%)
CIE-LABlab(29.61, 53.26, -67.71)
CIE-LCHlch(29.61, 86.15, 308.19°)
OKLaboklab(41.75% 0.0629 -0.1949)
OKLCHoklch(41.75% 0.205 287.9)
XYZxyz(11.8590, 6.0781, 42.6591)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F23B2 #86B223
analogous
#233EB2 #4F23B2 #9723B2
triadic
#4F23B2 #B24F23 #23B24F
tetradic
#4F23B2 #B2233E #86B223 #23B297
square
#4F23B2 #B2233E #86B223 #23B297
split-complementary
#4F23B2 #B29723 #3EB223
monochromatic
#220F4C #38197F #4F23B2 #6B3AD8 #916DE2

Accessibility & contrast

On white

9.48
#4F23B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4F23B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F23B2
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F23B2#FFFFFF#000000##FFFFFF
##4F23B21.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#0042AF
Tritanopia (blue-blind)
#244E6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f23b2;
/* rgb */ color: rgb(79, 35, 178);
/* oklch */ color: oklch(41.7% 0.205 287.9);
Tailwind
colors: {
  custom: {
    50: '#8c64ca',
    500: '#4f23b2',
    950: '#000000',
  },
}
SCSS
$custom: #4f23b2;
$custom-light: #8c64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f23b2",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 178
  },
  "hsl": {
    "h": 258.462,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41745,
    "c": 0.20477,
    "h": 287.9
  },
  "luminance": 0.06079
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F23B2

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

Preview Lab → · Contrast checker → · Palette generator →

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