#4F308E#4F308E

#4F308E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.148 H 293.9°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#4F308E
RGBrgb(79, 48, 142)
HSLhsl(260, 49%, 37%)
HSVhsv(260, 66%, 56%)
CMYKcmyk(44.4%, 66.2%, 0%, 44.3%)
CIE-LABlab(28.72, 36.51, -47.31)
CIE-LCHlch(28.72, 59.76, 307.66°)
OKLaboklab(40.13% 0.0598 -0.1351)
OKLCHoklch(40.13% 0.148 293.9)
XYZxyz(9.1626, 5.7289, 26.2090)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F308E #6F8E30
analogous
#30408E #4F308E #7E308E
triadic
#4F308E #8E4F30 #308E4F
tetradic
#4F308E #8E3040 #6F8E30 #308E7E
square
#4F308E #8E3040 #6F8E30 #308E7E
split-complementary
#4F308E #8E7E30 #408E30
monochromatic
#1C1133 #362160 #4F308E #683FBC #8C6BCD

Accessibility & contrast

On white

9.79
#4F308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F308E
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F308E#FFFFFF#000000##FFFFFF
##4F308E1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#3E465A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4f308e;
/* rgb */ color: rgb(79, 48, 142);
/* oklch */ color: oklch(40.1% 0.148 293.9);
Tailwind
colors: {
  custom: {
    50: '#866ab0',
    500: '#4f308e',
    950: '#000000',
  },
}
SCSS
$custom: #4f308e;
$custom-light: #866ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f308e",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 259.787,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40127,
    "c": 0.14776,
    "h": 293.9
  },
  "luminance": 0.05729
}

Semantic roles & 50–950 ramp

primary
#4F308E
secondary
#9AB465
accent
#D94FAB
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F308E

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

Preview Lab → · Contrast checker → · Palette generator →

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