#4F288F#4F288F

#4F288F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.1% C 0.160 H 295.3°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#4F288F
RGBrgb(79, 40, 143)
HSLhsl(263, 56%, 36%)
HSVhsv(263, 72%, 56%)
CMYKcmyk(44.8%, 72%, 0%, 43.9%)
CIE-LABlab(27.19, 41.21, -50.41)
CIE-LCHlch(27.19, 65.11, 309.27°)
OKLaboklab(39.06% 0.0682 -0.1442)
OKLCHoklch(39.06% 0.16 295.3)
XYZxyz(8.9398, 5.1628, 26.5068)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F288F #688F28
analogous
#28358F #4F288F #82288F
triadic
#4F288F #8F4F28 #288F4F
tetradic
#4F288F #8F2835 #688F28 #288F82
square
#4F288F #8F2835 #688F28 #288F82
split-complementary
#4F288F #8F8228 #358F28
monochromatic
#1A0D2F #351B5F #4F288F #6935BF #8B5FD2

Accessibility & contrast

On white

10.33
#4F288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#4F288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F288F
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F288F#FFFFFF#000000##FFFFFF
##4F288F1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#3E4258
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4f288f;
/* rgb */ color: rgb(79, 40, 143);
/* oklch */ color: oklch(39.1% 0.160 295.3);
Tailwind
colors: {
  custom: {
    50: '#8665b1',
    500: '#4f288f',
    950: '#000000',
  },
}
SCSS
$custom: #4f288f;
$custom-light: #8665b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f288f",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 262.718,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39059,
    "c": 0.15955,
    "h": 295.3
  },
  "luminance": 0.05163
}

Semantic roles & 50–950 ramp

primary
#4F288F
secondary
#95B85B
accent
#E048A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F288F

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

Preview Lab → · Contrast checker → · Palette generator →

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