#4F36B2#4F36B2

#4F36B2 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.1% C 0.185 H 285.1°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#4F36B2
RGBrgb(79, 54, 178)
HSLhsl(252, 53%, 45%)
HSVhsv(252, 70%, 70%)
CMYKcmyk(55.6%, 69.7%, 0%, 30.2%)
CIE-LABlab(32.95, 43.80, -62.22)
CIE-LCHlch(32.95, 76.09, 305.14°)
OKLaboklab(44.1% 0.0485 -0.179)
OKLCHoklch(44.1% 0.185 285.1)
XYZxyz(12.5771, 7.5142, 42.8985)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F36B2 #99B236
analogous
#365BB2 #4F36B2 #8D36B2
triadic
#4F36B2 #B24F36 #36B24F
tetradic
#4F36B2 #B2365B #99B236 #36B28D
square
#4F36B2 #B2365B #99B236 #36B28D
split-complementary
#4F36B2 #B28D36 #5BB236
monochromatic
#251A54 #3A2883 #4F36B2 #7059CD #9888DB

Accessibility & contrast

On white

8.39
#4F36B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#4F36B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F36B2
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F36B2#FFFFFF#000000##FFFFFF
##4F36B21.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#225670
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4f36b2;
/* rgb */ color: rgb(79, 54, 178);
/* oklch */ color: oklch(44.1% 0.185 285.1);
Tailwind
colors: {
  custom: {
    50: '#8a6fca',
    500: '#4f36b2',
    950: '#000000',
  },
}
SCSS
$custom: #4f36b2;
$custom-light: #8a6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f36b2",
  "rgb": {
    "r": 79,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 252.097,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44098,
    "c": 0.1854,
    "h": 285.1
  },
  "luminance": 0.07515
}

Semantic roles & 50–950 ramp

primary
#4F36B2
secondary
#B7C57F
accent
#DD4BBF
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F36B2

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

Preview Lab → · Contrast checker → · Palette generator →

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