#4B27B2#4B27B2

#4B27B2 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.8% C 0.202 H 285.6°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4B27B2
RGBrgb(75, 39, 178)
HSLhsl(256, 64%, 43%)
HSVhsv(256, 78%, 70%)
CMYKcmyk(57.9%, 78.1%, 0%, 30.2%)
CIE-LABlab(29.81, 50.97, -67.39)
CIE-LCHlch(29.81, 84.49, 307.10°)
OKLaboklab(41.79% 0.0541 -0.1941)
OKLCHoklch(41.79% 0.202 285.6)
XYZxyz(11.6606, 6.1605, 42.6855)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B27B2 #8EB227
analogous
#2748B2 #4B27B2 #9127B2
triadic
#4B27B2 #B24B27 #27B24B
tetradic
#4B27B2 #B22748 #8EB227 #27B291
square
#4B27B2 #B22748 #8EB227 #27B291
split-complementary
#4B27B2 #B29127 #48B227
monochromatic
#21114E #361C80 #4B27B2 #6741D5 #8F73E0

Accessibility & contrast

On white

9.41
#4B27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4B27B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B27B2
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B27B2#FFFFFF#000000##FFFFFF
##4B27B21.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#0042AF
Tritanopia (blue-blind)
#144F6C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4b27b2;
/* rgb */ color: rgb(75, 39, 178);
/* oklch */ color: oklch(41.8% 0.202 285.6);
Tailwind
colors: {
  custom: {
    50: '#8966ca',
    500: '#4b27b2',
    950: '#000000',
  },
}
SCSS
$custom: #4b27b2;
$custom-light: #8966ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4b27b2",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 255.54,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41789,
    "c": 0.20151,
    "h": 285.6
  },
  "luminance": 0.06161
}

Semantic roles & 50–950 ramp

primary
#4B27B2
secondary
#B0C86D
accent
#E741BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4B27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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