#4F308C#4F308C

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

Color values

HEX#4F308C
RGBrgb(79, 48, 140)
HSLhsl(260, 49%, 37%)
HSVhsv(260, 66%, 55%)
CMYKcmyk(43.6%, 65.7%, 0%, 45.1%)
CIE-LABlab(28.56, 35.93, -46.33)
CIE-LCHlch(28.56, 58.63, 307.80°)
OKLaboklab(39.97% 0.06 -0.1322)
OKLCHoklch(39.97% 0.145 294.4)
XYZxyz(9.0138, 5.6694, 25.4252)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F308C #6D8C30
analogous
#303F8C #4F308C #7D308C
triadic
#4F308C #8C4F30 #308C4F
tetradic
#4F308C #8C303F #6D8C30 #308C7D
square
#4F308C #8C303F #6D8C30 #308C7D
split-complementary
#4F308C #8C7D30 #3F8C30
monochromatic
#1C1131 #35205E #4F308C #6940BA #8B6ACC

Accessibility & contrast

On white

9.84
#4F308C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4F308C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F308C
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F308C#FFFFFF#000000##FFFFFF
##4F308C1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#3F4559
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f308c;
/* rgb */ color: rgb(79, 48, 140);
/* oklch */ color: oklch(40.0% 0.145 294.4);
Tailwind
colors: {
  custom: {
    50: '#856aae',
    500: '#4f308c',
    950: '#000000',
  },
}
SCSS
$custom: #4f308c;
$custom-light: #856aae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f308c",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 260.217,
    "s": 48.936,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39965,
    "c": 0.14521,
    "h": 294.4
  },
  "luminance": 0.0567
}

Semantic roles & 50–950 ramp

primary
#4F308C
secondary
#99B364
accent
#D84FAA
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F308C

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

Preview Lab → · Contrast checker → · Palette generator →

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