#40125F#40125F

#40125F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.129 H 307.4°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#40125F
RGBrgb(64, 18, 95)
HSLhsl(276, 68%, 22%)
HSVhsv(276, 81%, 37%)
CMYKcmyk(32.6%, 81.1%, 0%, 62.7%)
CIE-LABlab(17.22, 36.28, -36.00)
CIE-LCHlch(17.22, 51.11, 315.22°)
OKLaboklab(30.27% 0.0782 -0.1023)
OKLCHoklch(30.27% 0.129 307.4)
XYZxyz(4.3958, 2.3489, 11.0461)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40125F #315F12
analogous
#19125F #40125F #5F1258
triadic
#40125F #5F4012 #125F40
tetradic
#40125F #5F1912 #315F12 #12585F
square
#40125F #5F1912 #315F12 #12585F
split-complementary
#40125F #585F12 #125F19
monochromatic
#11051A #1D082C #40125F #631C92 #8525C6

Accessibility & contrast

On white

14.29
#40125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#40125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40125F
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40125F#FFFFFF#000000##FFFFFF
##40125F1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#3B2538
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #40125f;
/* rgb */ color: rgb(64, 18, 95);
/* oklch */ color: oklch(30.3% 0.129 307.4);
Tailwind
colors: {
  custom: {
    50: '#79568d',
    500: '#40125f',
    950: '#000000',
  },
}
SCSS
$custom: #40125f;
$custom-light: #79568d;
$custom-dark: #000000;
JSON
{
  "hex": "#40125f",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 275.844,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30272,
    "c": 0.12877,
    "h": 307.4
  },
  "luminance": 0.02349
}

Semantic roles & 50–950 ramp

primary
#40125F
secondary
#5D9736
accent
#EB3D83
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #40125F

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

Preview Lab → · Contrast checker → · Palette generator →

#40125F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva