#6A18B3#6A18B3

#6A18B3 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 44.0% C 0.216 H 301.0°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#6A18B3
RGBrgb(106, 24, 179)
HSLhsl(272, 76%, 40%)
HSVhsv(272, 87%, 70%)
CMYKcmyk(40.8%, 86.6%, 0%, 29.8%)
CIE-LABlab(31.74, 60.79, -64.68)
CIE-LCHlch(31.74, 88.76, 313.23°)
OKLaboklab(43.99% 0.111 -0.185)
OKLCHoklch(43.99% 0.216 301)
XYZxyz(14.4051, 6.9720, 43.2259)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A18B3 #61B318
analogous
#1C18B3 #6A18B3 #B318AF
triadic
#6A18B3 #B36A18 #18B36A
tetradic
#6A18B3 #B31C18 #61B318 #18AFB3
square
#6A18B3 #B31C18 #61B318 #18AFB3
split-complementary
#6A18B3 #AFB318 #18B31C
monochromatic
#2A0A47 #4A117D #6A18B3 #8A26E2 #A75CE9

Accessibility & contrast

On white

8.77
#6A18B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#6A18B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A18B3
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A18B3#FFFFFF#000000##FFFFFF
##6A18B31.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB7
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#59476A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6a18b3;
/* rgb */ color: rgb(106, 24, 179);
/* oklch */ color: oklch(44.0% 0.216 301.0);
Tailwind
colors: {
  custom: {
    50: '#9c63cb',
    500: '#6a18b3',
    950: '#000000',
  },
}
SCSS
$custom: #6a18b3;
$custom-light: #9c63cb;
$custom-dark: #000000;
JSON
{
  "hex": "#6a18b3",
  "rgb": {
    "r": 106,
    "g": 24,
    "b": 179
  },
  "hsl": {
    "h": 271.742,
    "s": 76.355,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43988,
    "c": 0.21577,
    "h": 301
  },
  "luminance": 0.06972
}

Semantic roles & 50–950 ramp

primary
#6A18B3
secondary
#90CD5A
accent
#F3358E
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6A18B3

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

Preview Lab → · Contrast checker → · Palette generator →

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