#4F268B#4F268B

#4F268B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.157 H 296.9°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#4F268B
RGBrgb(79, 38, 139)
HSLhsl(264, 57%, 35%)
HSVhsv(264, 73%, 55%)
CMYKcmyk(43.2%, 72.7%, 0%, 45.5%)
CIE-LABlab(26.48, 41.15, -49.09)
CIE-LCHlch(26.48, 64.05, 309.97°)
OKLaboklab(38.45% 0.0711 -0.1403)
OKLCHoklch(38.45% 0.157 296.9)
XYZxyz(8.5765, 4.9124, 24.9174)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F268B #628B26
analogous
#26308B #4F268B #81268B
triadic
#4F268B #8B4F26 #268B4F
tetradic
#4F268B #8B2630 #628B26 #268B81
square
#4F268B #8B2630 #628B26 #268B81
split-complementary
#4F268B #8B8126 #308B26
monochromatic
#180C2B #34195B #4F268B #6A33BB #8A5AD2

Accessibility & contrast

On white

10.59
#4F268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4F268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F268B
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F268B#FFFFFF#000000##FFFFFF
##4F268B1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#403F56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f268b;
/* rgb */ color: rgb(79, 38, 139);
/* oklch */ color: oklch(38.4% 0.157 296.9);
Tailwind
colors: {
  custom: {
    50: '#8664ae',
    500: '#4f268b',
    950: '#000000',
  },
}
SCSS
$custom: #4f268b;
$custom-light: #8664ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f268b",
  "rgb": {
    "r": 79,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 264.356,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38449,
    "c": 0.1573,
    "h": 296.9
  },
  "luminance": 0.04913
}

Semantic roles & 50–950 ramp

primary
#4F268B
secondary
#8FB756
accent
#E047A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F268B

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

Preview Lab → · Contrast checker → · Palette generator →

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