#4F31C8#4F31C8

#4F31C8 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.5% C 0.217 H 282.6°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#4F31C8
RGBrgb(79, 49, 200)
HSLhsl(252, 61%, 49%)
HSVhsv(252, 76%, 78%)
CMYKcmyk(60.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(34.04, 52.97, -73.39)
CIE-LCHlch(34.04, 90.51, 305.82°)
OKLaboklab(45.49% 0.0475 -0.2116)
OKLCHoklch(45.49% 0.217 282.6)
XYZxyz(14.7448, 8.0280, 55.4050)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31C8 #AAC831
analogous
#315EC8 #4F31C8 #9B31C8
triadic
#4F31C8 #C84F31 #31C84F
tetradic
#4F31C8 #C8315E #AAC831 #31C89B
square
#4F31C8 #C8315E #AAC831 #31C89B
split-complementary
#4F31C8 #C89B31 #5EC831
monochromatic
#281966 #3C2597 #4F31C8 #775FD8 #A090E4

Accessibility & contrast

On white

8.06
#4F31C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4F31C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31C8
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31C8#FFFFFF#000000##FFFFFF
##4F31C81.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CC
Deuteranopia (green-blind)
#004BC5
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4f31c8;
/* rgb */ color: rgb(79, 49, 200);
/* oklch */ color: oklch(45.5% 0.217 282.6);
Tailwind
colors: {
  custom: {
    50: '#8f6dda',
    500: '#4f31c8',
    950: '#000000',
  },
}
SCSS
$custom: #4f31c8;
$custom-light: #8f6dda;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31c8",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 251.921,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45489,
    "c": 0.21687,
    "h": 282.6
  },
  "luminance": 0.08029
}

Semantic roles & 50–950 ramp

primary
#4F31C8
secondary
#C0CE86
accent
#E444C4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4F31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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