#4A1267#4A1267

#4A1267 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.140 H 310.7°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#4A1267
RGBrgb(74, 18, 103)
HSLhsl(280, 70%, 24%)
HSVhsv(280, 83%, 40%)
CMYKcmyk(28.2%, 82.5%, 0%, 59.6%)
CIE-LABlab(19.51, 40.21, -37.50)
CIE-LCHlch(19.51, 54.98, 317.00°)
OKLaboklab(32.42% 0.0914 -0.1063)
OKLCHoklch(32.42% 0.14 310.7)
XYZxyz(5.4881, 2.8679, 13.0938)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1267 #2F6712
analogous
#1F1267 #4A1267 #671259
triadic
#4A1267 #674A12 #12674A
tetradic
#4A1267 #671F12 #2F6712 #125967
square
#4A1267 #671F12 #2F6712 #125967
split-complementary
#4A1267 #596712 #12671F
monochromatic
#13051A #250933 #4A1267 #6F1B9B #9524CF

Accessibility & contrast

On white

13.35
#4A1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4A1267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1267
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1267#FFFFFF#000000##FFFFFF
##4A12671.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D69
Deuteranopia (green-blind)
#003065
Tritanopia (blue-blind)
#46273C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4a1267;
/* rgb */ color: rgb(74, 18, 103);
/* oklch */ color: oklch(32.4% 0.140 310.7);
Tailwind
colors: {
  custom: {
    50: '#805793',
    500: '#4a1267',
    950: '#000000',
  },
}
SCSS
$custom: #4a1267;
$custom-light: #805793;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1267",
  "rgb": {
    "r": 74,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 279.529,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32424,
    "c": 0.14021,
    "h": 310.7
  },
  "luminance": 0.02868
}

Semantic roles & 50–950 ramp

primary
#4A1267
secondary
#5A9F36
accent
#ED3B78
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B030D
muted
#7C787E

Preview Lab

Preview with #4A1267

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

Preview Lab → · Contrast checker → · Palette generator →

#4A1267 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva