#4120C3#4120C3

#4120C3 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 42.0% C 0.228 H 279.5°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#4120C3
RGBrgb(65, 32, 195)
HSLhsl(252, 72%, 45%)
HSVhsv(252, 84%, 76%)
CMYKcmyk(66.7%, 83.6%, 0%, 23.5%)
CIE-LABlab(29.65, 57.78, -77.75)
CIE-LCHlch(29.65, 96.87, 306.62°)
OKLaboklab(41.99% 0.0374 -0.2245)
OKLCHoklch(41.99% 0.228 279.5)
XYZxyz(12.5437, 6.0959, 52.1348)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4120C3 #A2C320
analogous
#2051C3 #4120C3 #9220C3
triadic
#4120C3 #C34120 #20C341
tetradic
#4120C3 #C32051 #A2C320 #20C392
square
#4120C3 #C32051 #A2C320 #20C392
split-complementary
#4120C3 #C39220 #51C320
monochromatic
#1E0F5A #2F178E #4120C3 #6140E0 #8C75E8

Accessibility & contrast

On white

9.46
#4120C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4120C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4120C3
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4120C3#FFFFFF#000000##FFFFFF
##4120C31.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC7
Deuteranopia (green-blind)
#003FC0
Tritanopia (blue-blind)
#005574
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4120c3;
/* rgb */ color: rgb(65, 32, 195);
/* oklch */ color: oklch(42.0% 0.228 279.5);
Tailwind
colors: {
  custom: {
    50: '#8863d7',
    500: '#4120c3',
    950: '#000000',
  },
}
SCSS
$custom: #4120c3;
$custom-light: #8863d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4120c3",
  "rgb": {
    "r": 65,
    "g": 32,
    "b": 195
  },
  "hsl": {
    "h": 252.147,
    "s": 71.806,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41986,
    "c": 0.22757,
    "h": 279.5
  },
  "luminance": 0.06097
}

Semantic roles & 50–950 ramp

primary
#4120C3
secondary
#BCCF6F
accent
#EF39CA
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #4120C3

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

Preview Lab → · Contrast checker → · Palette generator →

#4120C3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva