#4F23A6#4F23A6

#4F23A6 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.192 H 290.4°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4F23A6
RGBrgb(79, 35, 166)
HSLhsl(260, 65%, 39%)
HSVhsv(260, 79%, 65%)
CMYKcmyk(52.4%, 78.9%, 0%, 34.9%)
CIE-LABlab(28.42, 49.99, -62.45)
CIE-LCHlch(28.42, 79.99, 308.67°)
OKLaboklab(40.57% 0.0667 -0.1795)
OKLCHoklch(40.57% 0.192 290.4)
XYZxyz(10.7064, 5.6170, 36.5891)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F23A6 #7AA623
analogous
#2338A6 #4F23A6 #9123A6
triadic
#4F23A6 #A64F23 #23A64F
tetradic
#4F23A6 #A62338 #7AA623 #23A691
square
#4F23A6 #A62338 #7AA623 #23A691
split-complementary
#4F23A6 #A69123 #38A623
monochromatic
#1F0E41 #371873 #4F23A6 #6932D4 #8E65DF

Accessibility & contrast

On white

9.89
#4F23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4F23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F23A6
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F23A6#FFFFFF#000000##FFFFFF
##4F23A61.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0040A4
Tritanopia (blue-blind)
#2F4964
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f23a6;
/* rgb */ color: rgb(79, 35, 166);
/* oklch */ color: oklch(40.6% 0.192 290.4);
Tailwind
colors: {
  custom: {
    50: '#8a64c2',
    500: '#4f23a6',
    950: '#000000',
  },
}
SCSS
$custom: #4f23a6;
$custom-light: #8a64c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f23a6",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 260.153,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40566,
    "c": 0.1915,
    "h": 290.4
  },
  "luminance": 0.05618
}

Semantic roles & 50–950 ramp

primary
#4F23A6
secondary
#A3C461
accent
#E840B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #4F23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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