#4B27B9#4B27B9

#4B27B9 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.5% C 0.209 H 284.4°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#4B27B9
RGBrgb(75, 39, 185)
HSLhsl(255, 65%, 44%)
HSVhsv(255, 79%, 73%)
CMYKcmyk(59.5%, 78.9%, 0%, 27.5%)
CIE-LABlab(30.52, 52.95, -70.39)
CIE-LCHlch(30.52, 88.08, 306.95°)
OKLaboklab(42.49% 0.0521 -0.2029)
OKLCHoklch(42.49% 0.209 284.4)
XYZxyz(12.3814, 6.4489, 46.4819)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B27B9 #95B927
analogous
#274CB9 #4B27B9 #9427B9
triadic
#4B27B9 #B94B27 #27B94B
tetradic
#4B27B9 #B9274C #95B927 #27B994
square
#4B27B9 #B9274C #95B927 #27B994
split-complementary
#4B27B9 #B99427 #4CB927
monochromatic
#221254 #371C86 #4B27B9 #6945D8 #9278E3

Accessibility & contrast

On white

9.17
#4B27B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4B27B9
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B27B9#FFFFFF#000000##FFFFFF
##4B27B91.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBD
Deuteranopia (green-blind)
#0043B6
Tritanopia (blue-blind)
#005270
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4b27b9;
/* rgb */ color: rgb(75, 39, 185);
/* oklch */ color: oklch(42.5% 0.209 284.4);
Tailwind
colors: {
  custom: {
    50: '#8b67cf',
    500: '#4b27b9',
    950: '#000000',
  },
}
SCSS
$custom: #4b27b9;
$custom-light: #8b67cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4b27b9",
  "rgb": {
    "r": 75,
    "g": 39,
    "b": 185
  },
  "hsl": {
    "h": 254.795,
    "s": 65.179,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4249,
    "c": 0.20944,
    "h": 284.4
  },
  "luminance": 0.0645
}

Semantic roles & 50–950 ramp

primary
#4B27B9
secondary
#B4CA72
accent
#E840BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4B27B9

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

Preview Lab → · Contrast checker → · Palette generator →

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