#4F308F#4F308F

#4F308F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.2% C 0.149 H 293.6°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#4F308F
RGBrgb(79, 48, 143)
HSLhsl(260, 50%, 37%)
HSVhsv(260, 66%, 56%)
CMYKcmyk(44.8%, 66.4%, 0%, 43.9%)
CIE-LABlab(28.80, 36.80, -47.80)
CIE-LCHlch(28.80, 60.33, 307.59°)
OKLaboklab(40.21% 0.0596 -0.1366)
OKLCHoklch(40.21% 0.149 293.6)
XYZxyz(9.2380, 5.7591, 26.6062)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F308F #708F30
analogous
#30418F #4F308F #7F308F
triadic
#4F308F #8F4F30 #308F4F
tetradic
#4F308F #8F3041 #708F30 #308F7F
square
#4F308F #8F3041 #708F30 #308F7F
split-complementary
#4F308F #8F7F30 #418F30
monochromatic
#1C1133 #362161 #4F308F #683FBD #8C6CCE

Accessibility & contrast

On white

9.76
#4F308F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4F308F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F308F
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F308F#FFFFFF#000000##FFFFFF
##4F308F1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#3D465B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f308f;
/* rgb */ color: rgb(79, 48, 143);
/* oklch */ color: oklch(40.2% 0.149 293.6);
Tailwind
colors: {
  custom: {
    50: '#866ab0',
    500: '#4f308f',
    950: '#000000',
  },
}
SCSS
$custom: #4f308f;
$custom-light: #866ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f308f",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 259.579,
    "s": 49.738,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40208,
    "c": 0.14904,
    "h": 293.6
  },
  "luminance": 0.05759
}

Semantic roles & 50–950 ramp

primary
#4F308F
secondary
#9BB566
accent
#D94FAC
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F308F

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

Preview Lab → · Contrast checker → · Palette generator →

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