#4120A8#4120A8

#4120A8 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.197 H 283.5°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4120A8
RGBrgb(65, 32, 168)
HSLhsl(255, 68%, 39%)
HSVhsv(255, 81%, 66%)
CMYKcmyk(61.3%, 81%, 0%, 34.1%)
CIE-LABlab(26.69, 50.16, -66.57)
CIE-LCHlch(26.69, 83.36, 307.00°)
OKLaboklab(39.07% 0.0463 -0.1919)
OKLCHoklch(39.07% 0.197 283.5)
XYZxyz(9.7622, 4.9833, 37.4857)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4120A8 #87A820
analogous
#2043A8 #4120A8 #8520A8
triadic
#4120A8 #A84120 #20A841
tetradic
#4120A8 #A82043 #87A820 #20A885
square
#4120A8 #A82043 #87A820 #20A885
split-complementary
#4120A8 #A88520 #43A820
monochromatic
#190C41 #2D1675 #4120A8 #572ED7 #8061E1

Accessibility & contrast

On white

10.52
#4120A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4120A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4120A8
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4120A8#FFFFFF#000000##FFFFFF
##4120A81.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#004965
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4120a8;
/* rgb */ color: rgb(65, 32, 168);
/* oklch */ color: oklch(39.1% 0.197 283.5);
Tailwind
colors: {
  custom: {
    50: '#8361c3',
    500: '#4120a8',
    950: '#000000',
  },
}
SCSS
$custom: #4120a8;
$custom-light: #8361c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4120a8",
  "rgb": {
    "r": 65,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 254.559,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39071,
    "c": 0.19744,
    "h": 283.5
  },
  "luminance": 0.04984
}

Semantic roles & 50–950 ramp

primary
#4120A8
secondary
#ADC65E
accent
#EB3DC1
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #4120A8

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

Preview Lab → · Contrast checker → · Palette generator →

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