#9040C2#9040C2

#9040C2 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.7% C 0.199 H 309.5°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#9040C2
RGBrgb(144, 64, 194)
HSLhsl(277, 52%, 51%)
HSVhsv(277, 67%, 76%)
CMYKcmyk(25.8%, 67%, 0%, 23.9%)
CIE-LABlab(43.49, 55.45, -54.17)
CIE-LCHlch(43.49, 77.52, 315.67°)
OKLaboklab(53.72% 0.1264 -0.1531)
OKLCHoklch(53.72% 0.199 309.5)
XYZxyz(23.0707, 13.4916, 52.4173)
Luminance0.1349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9040C2 #72C240
analogous
#4F40C2 #9040C2 #C240B3
triadic
#9040C2 #C29040 #40C290
tetradic
#9040C2 #C24F40 #72C240 #40B3C2
square
#9040C2 #C24F40 #72C240 #40B3C2
split-complementary
#9040C2 #B3C240 #40C24F
monochromatic
#4C2167 #6E3095 #9040C2 #AB6ED1 #C69DE0

Accessibility & contrast

On white

5.68
#9040C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#9040C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9040C2
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9040C2#FFFFFF#000000##FFFFFF
##9040C21.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#2A68BF
Tritanopia (blue-blind)
#895B7C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9040c2;
/* rgb */ color: rgb(144, 64, 194);
/* oklch */ color: oklch(53.7% 0.199 309.5);
Tailwind
colors: {
  custom: {
    50: '#b57ad5',
    500: '#9040c2',
    950: '#000000',
  },
}
SCSS
$custom: #9040c2;
$custom-light: #b57ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#9040c2",
  "rgb": {
    "r": 144,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 276.923,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53717,
    "c": 0.19855,
    "h": 309.5
  },
  "luminance": 0.13491
}

Semantic roles & 50–950 ramp

primary
#9040C2
secondary
#A8CC92
accent
#DB4D83
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83

Preview Lab

Preview with #9040C2

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

Preview Lab → · Contrast checker → · Palette generator →

#9040C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva