#4120A2#4120A2

#4120A2 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.191 H 284.6°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#4120A2
RGBrgb(65, 32, 162)
HSLhsl(255, 67%, 38%)
HSVhsv(255, 80%, 64%)
CMYKcmyk(59.9%, 80.2%, 0%, 36.5%)
CIE-LABlab(26.05, 48.44, -63.99)
CIE-LCHlch(26.05, 80.25, 307.13°)
OKLaboklab(38.44% 0.0482 -0.1844)
OKLCHoklch(38.44% 0.191 284.6)
XYZxyz(9.2161, 4.7649, 34.6095)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4120A2 #81A220
analogous
#2040A2 #4120A2 #8220A2
triadic
#4120A2 #A24120 #20A241
tetradic
#4120A2 #A22040 #81A220 #20A282
square
#4120A2 #A22040 #81A220 #20A282
split-complementary
#4120A2 #A28220 #40A220
monochromatic
#180C3C #2C166F #4120A2 #562AD5 #7E5DDF

Accessibility & contrast

On white

10.75
#4120A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4120A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4120A2
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4120A2#FFFFFF#000000##FFFFFF
##4120A21.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A6
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#024761
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4120a2;
/* rgb */ color: rgb(65, 32, 162);
/* oklch */ color: oklch(38.4% 0.191 284.6);
Tailwind
colors: {
  custom: {
    50: '#8261bf',
    500: '#4120a2',
    950: '#000000',
  },
}
SCSS
$custom: #4120a2;
$custom-light: #8261bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4120a2",
  "rgb": {
    "r": 65,
    "g": 32,
    "b": 162
  },
  "hsl": {
    "h": 255.231,
    "s": 67.01,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38444,
    "c": 0.19059,
    "h": 284.6
  },
  "luminance": 0.04765
}

Semantic roles & 50–950 ramp

primary
#4120A2
secondary
#A9C35A
accent
#EA3EBE
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4120A2

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

Preview Lab → · Contrast checker → · Palette generator →

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