#40147B#40147B

#40147B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.157 H 295.6°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#40147B
RGBrgb(64, 20, 123)
HSLhsl(266, 72%, 28%)
HSVhsv(266, 84%, 48%)
CMYKcmyk(48%, 83.7%, 0%, 51.8%)
CIE-LABlab(20.12, 42.70, -49.49)
CIE-LCHlch(20.12, 65.36, 310.79°)
OKLaboklab(33.1% 0.068 -0.1419)
OKLCHoklch(33.1% 0.157 295.6)
XYZxyz(5.9387, 3.0202, 19.0051)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40147B #4F7B14
analogous
#141B7B #40147B #73147B
triadic
#40147B #7B4014 #147B40
tetradic
#40147B #7B141B #4F7B14 #147B73
square
#40147B #7B141B #4F7B14 #147B73
split-complementary
#40147B #7B7314 #1B7B14
monochromatic
#0E041A #250B46 #40147B #5B1DB0 #782DDD

Accessibility & contrast

On white

13.09
#40147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#40147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40147B
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40147B#FFFFFF#000000##FFFFFF
##40147B1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#2F3248
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #40147b;
/* rgb */ color: rgb(64, 20, 123);
/* oklch */ color: oklch(33.1% 0.157 295.6);
Tailwind
colors: {
  custom: {
    50: '#7c58a2',
    500: '#40147b',
    950: '#000000',
  },
}
SCSS
$custom: #40147b;
$custom-light: #7c58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#40147b",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 265.631,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33103,
    "c": 0.15736,
    "h": 295.6
  },
  "luminance": 0.0302
}

Semantic roles & 50–950 ramp

primary
#40147B
secondary
#7EB13A
accent
#EF39A1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #40147B

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

Preview Lab → · Contrast checker → · Palette generator →

#40147B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva