#4F31A2#4F31A2

#4F31A2 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.172 H 289.0°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#4F31A2
RGBrgb(79, 49, 162)
HSLhsl(256, 54%, 41%)
HSVhsv(256, 70%, 64%)
CMYKcmyk(51.2%, 69.8%, 0%, 36.5%)
CIE-LABlab(30.56, 41.80, -56.53)
CIE-LCHlch(30.56, 70.31, 306.48°)
OKLaboklab(41.96% 0.0558 -0.1622)
OKLCHoklch(41.96% 0.172 289)
XYZxyz(10.8425, 6.4670, 34.8524)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F31A2 #84A231
analogous
#314CA2 #4F31A2 #8831A2
triadic
#4F31A2 #A24F31 #31A24F
tetradic
#4F31A2 #A2314C #84A231 #31A288
square
#4F31A2 #A2314C #84A231 #31A288
split-complementary
#4F31A2 #A28831 #4CA231
monochromatic
#211544 #382373 #4F31A2 #6A48C8 #9177D6

Accessibility & contrast

On white

9.16
#4F31A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4F31A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F31A2
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F31A2#FFFFFF#000000##FFFFFF
##4F31A21.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#314E65
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4f31a2;
/* rgb */ color: rgb(79, 49, 162);
/* oklch */ color: oklch(42.0% 0.172 289.0);
Tailwind
colors: {
  custom: {
    50: '#886bbe',
    500: '#4f31a2',
    950: '#000000',
  },
}
SCSS
$custom: #4f31a2;
$custom-light: #886bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4f31a2",
  "rgb": {
    "r": 79,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 255.929,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41963,
    "c": 0.17157,
    "h": 289
  },
  "luminance": 0.06468
}

Semantic roles & 50–950 ramp

primary
#4F31A2
secondary
#AABE71
accent
#DD4BB6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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