#4E1275#4E1275

#4E1275 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.155 H 307.1°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#4E1275
RGBrgb(78, 18, 117)
HSLhsl(276, 73%, 26%)
HSVhsv(276, 85%, 46%)
CMYKcmyk(33.3%, 84.6%, 0%, 54.1%)
CIE-LABlab(21.34, 44.22, -43.57)
CIE-LCHlch(21.34, 62.07, 315.42°)
OKLaboklab(34.22% 0.0937 -0.124)
OKLCHoklch(34.22% 0.155 307.1)
XYZxyz(6.5684, 3.3367, 17.1242)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1275 #397512
analogous
#1D1275 #4E1275 #75126B
triadic
#4E1275 #754E12 #12754E
tetradic
#4E1275 #751D12 #397512 #126B75
square
#4E1275 #751D12 #397512 #126B75
split-complementary
#4E1275 #6B7512 #12751D
monochromatic
#12041B #2B0A40 #4E1275 #711AAA #9424DD

Accessibility & contrast

On white

12.59
#4E1275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4E1275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1275
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1275#FFFFFF#000000##FFFFFF
##4E12751.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#003473
Tritanopia (blue-blind)
#472D44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e1275;
/* rgb */ color: rgb(78, 18, 117);
/* oklch */ color: oklch(34.2% 0.155 307.1);
Tailwind
colors: {
  custom: {
    50: '#84599e',
    500: '#4e1275',
    950: '#000000',
  },
}
SCSS
$custom: #4e1275;
$custom-light: #84599e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1275",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 276.364,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34215,
    "c": 0.1554,
    "h": 307.1
  },
  "luminance": 0.03337
}

Semantic roles & 50–950 ramp

primary
#4E1275
secondary
#65AC37
accent
#F03880
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1275

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

Preview Lab → · Contrast checker → · Palette generator →

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