#6B308E#6B308E

#6B308E is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.5% C 0.154 H 310.4°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#6B308E
RGBrgb(107, 48, 142)
HSLhsl(278, 49%, 37%)
HSVhsv(278, 66%, 56%)
CMYKcmyk(24.6%, 66.2%, 0%, 44.3%)
CIE-LABlab(32.24, 42.91, -41.45)
CIE-LCHlch(32.24, 59.65, 315.99°)
OKLaboklab(43.45% 0.0996 -0.1169)
OKLCHoklch(43.45% 0.154 310.4)
XYZxyz(12.0019, 7.1930, 26.3421)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B308E #538E30
analogous
#3C308E #6B308E #8E3082
triadic
#6B308E #8E6B30 #308E6B
tetradic
#6B308E #8E3C30 #538E30 #30828E
square
#6B308E #8E3C30 #538E30 #30828E
split-complementary
#6B308E #828E30 #308E3C
monochromatic
#261133 #492160 #6B308E #8D3FBC #A96BCD

Accessibility & contrast

On white

8.61
#6B308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#6B308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B308E
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B308E#FFFFFF#000000##FFFFFF
##6B308E1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#244D8C
Tritanopia (blue-blind)
#66435A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6b308e;
/* rgb */ color: rgb(107, 48, 142);
/* oklch */ color: oklch(43.5% 0.154 310.4);
Tailwind
colors: {
  custom: {
    50: '#996cb0',
    500: '#6b308e',
    950: '#000000',
  },
}
SCSS
$custom: #6b308e;
$custom-light: #996cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b308e",
  "rgb": {
    "r": 107,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 277.66,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43452,
    "c": 0.15361,
    "h": 310.4
  },
  "luminance": 0.07193
}

Semantic roles & 50–950 ramp

primary
#6B308E
secondary
#83B465
accent
#D94F82
background
#F9F6FA
surface
#F2ECF5
border
#CCC7CF
text
#0E0710
muted
#7E7A7F

Preview Lab

Preview with #6B308E

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

Preview Lab → · Contrast checker → · Palette generator →

#6B308E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva