#4A267C#4A267C

#4A267C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.139 H 298.5°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#4A267C
RGBrgb(74, 38, 124)
HSLhsl(265, 53%, 32%)
HSVhsv(265, 69%, 49%)
CMYKcmyk(40.3%, 69.4%, 0%, 51.4%)
CIE-LABlab(24.63, 35.98, -42.71)
CIE-LCHlch(24.63, 55.85, 310.11°)
OKLaboklab(36.6% 0.0661 -0.1218)
OKLCHoklch(36.6% 0.139 298.5)
XYZxyz(7.1543, 4.2972, 19.5174)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A267C #587C26
analogous
#262D7C #4A267C #75267C
triadic
#4A267C #7C4A26 #267C4A
tetradic
#4A267C #7C262D #587C26 #267C75
square
#4A267C #7C262D #587C26 #267C75
split-complementary
#4A267C #7C7526 #2D7C26
monochromatic
#12091E #2E184D #4A267C #6634AB #8452CA

Accessibility & contrast

On white

11.29
#4A267C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4A267C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A267C
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A267C#FFFFFF#000000##FFFFFF
##4A267C1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#3E3A4D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a267c;
/* rgb */ color: rgb(74, 38, 124);
/* oklch */ color: oklch(36.6% 0.139 298.5);
Tailwind
colors: {
  custom: {
    50: '#8163a3',
    500: '#4a267c',
    950: '#000000',
  },
}
SCSS
$custom: #4a267c;
$custom-light: #8163a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a267c",
  "rgb": {
    "r": 74,
    "g": 38,
    "b": 124
  },
  "hsl": {
    "h": 265.116,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.366,
    "c": 0.13856,
    "h": 298.5
  },
  "luminance": 0.04297
}

Semantic roles & 50–950 ramp

primary
#4A267C
secondary
#87AE50
accent
#DC4BA0
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4A267C

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

Preview Lab → · Contrast checker → · Palette generator →

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