#4F267F#4F267F

#4F267F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.143 H 300.8°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#4F267F
RGBrgb(79, 38, 127)
HSLhsl(268, 54%, 32%)
HSVhsv(268, 70%, 50%)
CMYKcmyk(37.8%, 70.1%, 0%, 50.2%)
CIE-LABlab(25.51, 37.89, -43.16)
CIE-LCHlch(25.51, 57.43, 311.28°)
OKLaboklab(37.45% 0.0731 -0.1229)
OKLCHoklch(37.45% 0.143 300.8)
XYZxyz(7.7474, 4.5807, 20.5506)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F267F #567F26
analogous
#262A7F #4F267F #7B267F
triadic
#4F267F #7F4F26 #267F4F
tetradic
#4F267F #7F262A #567F26 #267F7B
square
#4F267F #7F262A #567F26 #267F7B
split-complementary
#4F267F #7F7B26 #2A7F26
monochromatic
#140A21 #321850 #4F267F #6C34AE #8B54CC

Accessibility & contrast

On white

10.96
#4F267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4F267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F267F
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F267F#FFFFFF#000000##FFFFFF
##4F267F1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#453B4F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4f267f;
/* rgb */ color: rgb(79, 38, 127);
/* oklch */ color: oklch(37.4% 0.143 300.8);
Tailwind
colors: {
  custom: {
    50: '#8563a5',
    500: '#4f267f',
    950: '#000000',
  },
}
SCSS
$custom: #4f267f;
$custom-light: #8563a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4f267f",
  "rgb": {
    "r": 79,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 267.64,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37445,
    "c": 0.14303,
    "h": 300.8
  },
  "luminance": 0.04581
}

Semantic roles & 50–950 ramp

primary
#4F267F
secondary
#84B051
accent
#DD4A9A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4F267F

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

Preview Lab → · Contrast checker → · Palette generator →

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