#4120A7#4120A7

#4120A7 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.196 H 283.7°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#4120A7
RGBrgb(65, 32, 167)
HSLhsl(255, 68%, 39%)
HSVhsv(255, 81%, 65%)
CMYKcmyk(61.1%, 80.8%, 0%, 34.5%)
CIE-LABlab(26.58, 49.87, -66.15)
CIE-LCHlch(26.58, 82.84, 307.02°)
OKLaboklab(38.97% 0.0466 -0.1907)
OKLCHoklch(38.97% 0.196 283.7)
XYZxyz(9.6694, 4.9462, 36.9969)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4120A7 #86A720
analogous
#2043A7 #4120A7 #8520A7
triadic
#4120A7 #A74120 #20A741
tetradic
#4120A7 #A72043 #86A720 #20A785
square
#4120A7 #A72043 #86A720 #20A785
split-complementary
#4120A7 #A78520 #43A720
monochromatic
#190C40 #2D1674 #4120A7 #572DD7 #8061E1

Accessibility & contrast

On white

10.56
#4120A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4120A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4120A7
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4120A7#FFFFFF#000000##FFFFFF
##4120A71.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#003AA5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4120a7;
/* rgb */ color: rgb(65, 32, 167);
/* oklch */ color: oklch(39.0% 0.196 283.7);
Tailwind
colors: {
  custom: {
    50: '#8361c2',
    500: '#4120a7',
    950: '#000000',
  },
}
SCSS
$custom: #4120a7;
$custom-light: #8361c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4120a7",
  "rgb": {
    "r": 65,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 254.667,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38966,
    "c": 0.1963,
    "h": 283.7
  },
  "luminance": 0.04947
}

Semantic roles & 50–950 ramp

primary
#4120A7
secondary
#ACC55D
accent
#EB3DC0
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #4120A7

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

Preview Lab → · Contrast checker → · Palette generator →

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