#4F27B2#4F27B2

#4F27B2 is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.2% C 0.201 H 287.4°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4F27B2
RGBrgb(79, 39, 178)
HSLhsl(257, 64%, 43%)
HSVhsv(257, 78%, 70%)
CMYKcmyk(55.6%, 78.1%, 0%, 30.2%)
CIE-LABlab(30.22, 51.48, -66.70)
CIE-LCHlch(30.22, 84.26, 307.66°)
OKLaboklab(42.17% 0.0602 -0.192)
OKLCHoklch(42.17% 0.201 287.4)
XYZxyz(11.9835, 6.3270, 42.7006)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F27B2 #8AB227
analogous
#2745B2 #4F27B2 #9427B2
triadic
#4F27B2 #B24F27 #27B24F
tetradic
#4F27B2 #B22745 #8AB227 #27B294
square
#4F27B2 #B22745 #8AB227 #27B294
split-complementary
#4F27B2 #B29427 #45B227
monochromatic
#22114E #391C80 #4F27B2 #6C41D5 #9373E0

Accessibility & contrast

On white

9.27
#4F27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4F27B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F27B2
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F27B2#FFFFFF#000000##FFFFFF
##4F27B21.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#234F6C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f27b2;
/* rgb */ color: rgb(79, 39, 178);
/* oklch */ color: oklch(42.2% 0.201 287.4);
Tailwind
colors: {
  custom: {
    50: '#8c66ca',
    500: '#4f27b2',
    950: '#000000',
  },
}
SCSS
$custom: #4f27b2;
$custom-light: #8c66ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f27b2",
  "rgb": {
    "r": 79,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 257.266,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42172,
    "c": 0.20119,
    "h": 287.4
  },
  "luminance": 0.06328
}

Semantic roles & 50–950 ramp

primary
#4F27B2
secondary
#AEC86D
accent
#E741B7
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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