#6B23A2#6B23A2

#6B23A2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.5% C 0.190 H 305.3°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#6B23A2
RGBrgb(107, 35, 162)
HSLhsl(274, 64%, 39%)
HSVhsv(274, 78%, 64%)
CMYKcmyk(34%, 78.4%, 0%, 36.5%)
CIE-LABlab(31.66, 53.39, -54.59)
CIE-LCHlch(31.66, 76.36, 314.36°)
OKLaboklab(43.51% 0.1101 -0.1555)
OKLCHoklch(43.51% 0.19 305.3)
XYZxyz(13.1846, 6.9366, 34.8197)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B23A2 #5AA223
analogous
#2C23A2 #6B23A2 #A22399
triadic
#6B23A2 #A26B23 #23A26B
tetradic
#6B23A2 #A22C23 #5AA223 #2399A2
square
#6B23A2 #A22C23 #5AA223 #2399A2
split-complementary
#6B23A2 #99A223 #23A22C
monochromatic
#290D3D #4A1870 #6B23A2 #8C30D2 #A862DD

Accessibility & contrast

On white

8.80
#6B23A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B23A2
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B23A2#FFFFFF#000000##FFFFFF
##6B23A21.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#004B9F
Tritanopia (blue-blind)
#614462
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6b23a2;
/* rgb */ color: rgb(107, 35, 162);
/* oklch */ color: oklch(43.5% 0.190 305.3);
Tailwind
colors: {
  custom: {
    50: '#9b67be',
    500: '#6b23a2',
    950: '#000000',
  },
}
SCSS
$custom: #6b23a2;
$custom-light: #9b67be;
$custom-dark: #000000;
JSON
{
  "hex": "#6b23a2",
  "rgb": {
    "r": 107,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 274.016,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43508,
    "c": 0.19049,
    "h": 305.3
  },
  "luminance": 0.06936
}

Semantic roles & 50–950 ramp

primary
#6B23A2
secondary
#8AC25E
accent
#E74089
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6B23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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