#4F23A9#4F23A9

#4F23A9 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.195 H 289.7°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#4F23A9
RGBrgb(79, 35, 169)
HSLhsl(260, 66%, 40%)
HSVhsv(260, 79%, 66%)
CMYKcmyk(53.3%, 79.3%, 0%, 33.7%)
CIE-LABlab(28.72, 50.81, -63.78)
CIE-LCHlch(28.72, 81.54, 308.54°)
OKLaboklab(40.86% 0.0658 -0.1834)
OKLCHoklch(40.86% 0.195 289.7)
XYZxyz(10.9848, 5.7284, 38.0553)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F23A9 #7DA923
analogous
#233AA9 #4F23A9 #9223A9
triadic
#4F23A9 #A94F23 #23A94F
tetradic
#4F23A9 #A9233A #7DA923 #23A992
square
#4F23A9 #A9233A #7DA923 #23A992
split-complementary
#4F23A9 #A99223 #3AA923
monochromatic
#200E44 #371976 #4F23A9 #6934D5 #8E67DF

Accessibility & contrast

On white

9.79
#4F23A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4F23A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F23A9
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F23A9#FFFFFF#000000##FFFFFF
##4F23A91.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0040A7
Tritanopia (blue-blind)
#2D4A66
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f23a9;
/* rgb */ color: rgb(79, 35, 169);
/* oklch */ color: oklch(40.9% 0.195 289.7);
Tailwind
colors: {
  custom: {
    50: '#8a64c4',
    500: '#4f23a9',
    950: '#000000',
  },
}
SCSS
$custom: #4f23a9;
$custom-light: #8a64c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4f23a9",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 259.701,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.40857,
    "c": 0.19483,
    "h": 289.7
  },
  "luminance": 0.05729
}

Semantic roles & 50–950 ramp

primary
#4F23A9
secondary
#A5C563
accent
#E93FB1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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