#4A1F7C#4A1F7C

#4A1F7C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.148 H 299.9°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#4A1F7C
RGBrgb(74, 31, 124)
HSLhsl(268, 60%, 30%)
HSVhsv(268, 75%, 49%)
CMYKcmyk(40.3%, 75%, 0%, 51.4%)
CIE-LABlab(23.31, 39.66, -44.86)
CIE-LCHlch(23.31, 59.88, 311.48°)
OKLaboklab(35.66% 0.0738 -0.1281)
OKLCHoklch(35.66% 0.148 299.9)
XYZxyz(6.9512, 3.8910, 19.4497)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1F7C #517C1F
analogous
#1F227C #4A1F7C #781F7C
triadic
#4A1F7C #7C4A1F #1F7C4A
tetradic
#4A1F7C #7C1F22 #517C1F #1F7C78
square
#4A1F7C #7C1F22 #517C1F #1F7C78
split-complementary
#4A1F7C #7C781F #227C1F
monochromatic
#10071A #2D134B #4A1F7C #672BAD #8545D0

Accessibility & contrast

On white

11.81
#4A1F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4A1F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1F7C
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1F7C#FFFFFF#000000##FFFFFF
##4A1F7C1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#3E364B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4a1f7c;
/* rgb */ color: rgb(74, 31, 124);
/* oklch */ color: oklch(35.7% 0.148 299.9);
Tailwind
colors: {
  custom: {
    50: '#825fa3',
    500: '#4a1f7c',
    950: '#000000',
  },
}
SCSS
$custom: #4a1f7c;
$custom-light: #825fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1f7c",
  "rgb": {
    "r": 74,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 267.742,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35657,
    "c": 0.14779,
    "h": 299.9
  },
  "luminance": 0.03891
}

Semantic roles & 50–950 ramp

primary
#4A1F7C
secondary
#7FAF48
accent
#E3459A
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4A1F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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