#4120AF#4120AF

#4120AF is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 39.8% C 0.205 H 282.4°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#4120AF
RGBrgb(65, 32, 175)
HSLhsl(254, 69%, 41%)
HSVhsv(254, 82%, 69%)
CMYKcmyk(62.9%, 81.7%, 0%, 31.4%)
CIE-LABlab(27.44, 52.16, -69.54)
CIE-LCHlch(27.44, 86.93, 306.87°)
OKLaboklab(39.81% 0.044 -0.2006)
OKLCHoklch(39.81% 0.205 282.4)
XYZxyz(10.4319, 5.2512, 41.0130)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4120AF #8EAF20
analogous
#2047AF #4120AF #8820AF
triadic
#4120AF #AF4120 #20AF41
tetradic
#4120AF #AF2047 #8EAF20 #20AF88
square
#4120AF #AF2047 #8EAF20 #20AF88
split-complementary
#4120AF #AF8820 #47AF20
monochromatic
#1B0D48 #2E177B #4120AF #5933DA #8366E3

Accessibility & contrast

On white

10.24
#4120AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4120AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4120AF
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4120AF#FFFFFF#000000##FFFFFF
##4120AF1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B3
Deuteranopia (green-blind)
#003CAD
Tritanopia (blue-blind)
#004C69
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4120af;
/* rgb */ color: rgb(65, 32, 175);
/* oklch */ color: oklch(39.8% 0.205 282.4);
Tailwind
colors: {
  custom: {
    50: '#8461c8',
    500: '#4120af',
    950: '#000000',
  },
}
SCSS
$custom: #4120af;
$custom-light: #8461c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4120af",
  "rgb": {
    "r": 65,
    "g": 32,
    "b": 175
  },
  "hsl": {
    "h": 253.846,
    "s": 69.082,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39814,
    "c": 0.20537,
    "h": 282.4
  },
  "luminance": 0.05252
}

Semantic roles & 50–950 ramp

primary
#4120AF
secondary
#B1C862
accent
#EC3CC3
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4120AF

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

Preview Lab → · Contrast checker → · Palette generator →

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