#6918B4#6918B4

#6918B4 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 44.0% C 0.217 H 300.3°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#6918B4
RGBrgb(105, 24, 180)
HSLhsl(271, 76%, 40%)
HSVhsv(271, 87%, 71%)
CMYKcmyk(41.7%, 86.7%, 0%, 29.4%)
CIE-LABlab(31.70, 60.89, -65.35)
CIE-LCHlch(31.70, 89.32, 312.98°)
OKLaboklab(43.96% 0.1091 -0.187)
OKLCHoklch(43.96% 0.217 300.3)
XYZxyz(14.3885, 6.9517, 43.7549)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6918B4 #63B418
analogous
#1B18B4 #6918B4 #B418B1
triadic
#6918B4 #B46918 #18B469
tetradic
#6918B4 #B41B18 #63B418 #18B1B4
square
#6918B4 #B41B18 #63B418 #18B1B4
split-complementary
#6918B4 #B1B418 #18B41B
monochromatic
#2A0A48 #4A117E #6918B4 #8827E2 #A65DE9

Accessibility & contrast

On white

8.79
#6918B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#6918B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6918B4
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6918B4#FFFFFF#000000##FFFFFF
##6918B41.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#0049B1
Tritanopia (blue-blind)
#57486B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6918b4;
/* rgb */ color: rgb(105, 24, 180);
/* oklch */ color: oklch(44.0% 0.217 300.3);
Tailwind
colors: {
  custom: {
    50: '#9c63cc',
    500: '#6918b4',
    950: '#000000',
  },
}
SCSS
$custom: #6918b4;
$custom-light: #9c63cc;
$custom-dark: #000000;
JSON
{
  "hex": "#6918b4",
  "rgb": {
    "r": 105,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 271.154,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.43955,
    "c": 0.21655,
    "h": 300.3
  },
  "luminance": 0.06952
}

Semantic roles & 50–950 ramp

primary
#6918B4
secondary
#92CD5B
accent
#F33590
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6918B4

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

Preview Lab → · Contrast checker → · Palette generator →

#6918B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva