#4A267B#4A267B

#4A267B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.5% C 0.137 H 298.8°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#4A267B
RGBrgb(74, 38, 123)
HSLhsl(265, 53%, 32%)
HSVhsv(265, 69%, 48%)
CMYKcmyk(39.8%, 69.1%, 0%, 51.8%)
CIE-LABlab(24.55, 35.70, -42.21)
CIE-LCHlch(24.55, 55.28, 310.23°)
OKLaboklab(36.52% 0.0662 -0.1203)
OKLCHoklch(36.52% 0.137 298.8)
XYZxyz(7.0914, 4.2720, 19.1860)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A267B #577B26
analogous
#262D7B #4A267B #75267B
triadic
#4A267B #7B4A26 #267B4A
tetradic
#4A267B #7B262D #577B26 #267B75
square
#4A267B #7B262D #577B26 #267B75
split-complementary
#4A267B #7B7526 #2D7B26
monochromatic
#12091D #2E184C #4A267B #6634AA #8552CA

Accessibility & contrast

On white

11.32
#4A267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4A267B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A267B
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A267B#FFFFFF#000000##FFFFFF
##4A267B1.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#3F3A4D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4a267b;
/* rgb */ color: rgb(74, 38, 123);
/* oklch */ color: oklch(36.5% 0.137 298.8);
Tailwind
colors: {
  custom: {
    50: '#8163a2',
    500: '#4a267b',
    950: '#000000',
  },
}
SCSS
$custom: #4a267b;
$custom-light: #8163a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a267b",
  "rgb": {
    "r": 74,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 265.412,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36518,
    "c": 0.13732,
    "h": 298.8
  },
  "luminance": 0.04272
}

Semantic roles & 50–950 ramp

primary
#4A267B
secondary
#86AD50
accent
#DC4C9F
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4A267B

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

Preview Lab → · Contrast checker → · Palette generator →

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