#4F308D#4F308D

#4F308D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.0% C 0.146 H 294.1°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#4F308D
RGBrgb(79, 48, 141)
HSLhsl(260, 49%, 37%)
HSVhsv(260, 66%, 55%)
CMYKcmyk(44%, 66%, 0%, 44.7%)
CIE-LABlab(28.64, 36.22, -46.82)
CIE-LCHlch(28.64, 59.20, 307.73°)
OKLaboklab(40.05% 0.0599 -0.1337)
OKLCHoklch(40.05% 0.146 294.1)
XYZxyz(9.0878, 5.6990, 25.8153)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F308D #6E8D30
analogous
#30408D #4F308D #7E308D
triadic
#4F308D #8D4F30 #308D4F
tetradic
#4F308D #8D3040 #6E8D30 #308D7E
square
#4F308D #8D3040 #6E8D30 #308D7E
split-complementary
#4F308D #8D7E30 #408D30
monochromatic
#1C1132 #35205F #4F308D #6940BB #8B6BCD

Accessibility & contrast

On white

9.81
#4F308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4F308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F308D
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F308D#FFFFFF#000000##FFFFFF
##4F308D1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f308d;
/* rgb */ color: rgb(79, 48, 141);
/* oklch */ color: oklch(40.0% 0.146 294.1);
Tailwind
colors: {
  custom: {
    50: '#866aaf',
    500: '#4f308d',
    950: '#000000',
  },
}
SCSS
$custom: #4f308d;
$custom-light: #866aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f308d",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 260,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40046,
    "c": 0.14649,
    "h": 294.1
  },
  "luminance": 0.05699
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F308D

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

Preview Lab → · Contrast checker → · Palette generator →

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