#6B02CA#6B02CA

#6B02CA is a mid, highly saturated violet. Relative luminance 0.074; OKLCH L 45.4% C 0.246 H 296.7°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#6B02CA
RGBrgb(107, 2, 202)
HSLhsl(272, 98%, 40%)
HSVhsv(272, 99%, 79%)
CMYKcmyk(47%, 99%, 0%, 20.8%)
CIE-LABlab(32.77, 70.06, -76.55)
CIE-LCHlch(32.77, 103.77, 312.46°)
OKLaboklab(45.39% 0.1105 -0.2196)
OKLCHoklch(45.39% 0.246 296.7)
XYZxyz(16.7429, 7.4331, 56.4182)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B02CA #61CA02
analogous
#0702CA #6B02CA #CA02C5
triadic
#6B02CA #CA6B02 #02CA6B
tetradic
#6B02CA #CA0702 #61CA02 #02C5CA
square
#6B02CA #CA0702 #61CA02 #02C5CA
split-complementary
#6B02CA #C5CA02 #02CA07
monochromatic
#2B0151 #4B018D #6B02CA #8B0DFD #A849FD

Accessibility & contrast

On white

8.45
#6B02CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6B02CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B02CA
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B02CA#FFFFFF#000000##FFFFFF
##6B02CA1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ECF
Deuteranopia (green-blind)
#004BC7
Tritanopia (blue-blind)
#4F4E76
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6b02ca;
/* rgb */ color: rgb(107, 2, 202);
/* oklch */ color: oklch(45.4% 0.246 296.7);
Tailwind
colors: {
  custom: {
    50: '#a060dc',
    500: '#6b02ca',
    950: '#000000',
  },
}
SCSS
$custom: #6b02ca;
$custom-light: #a060dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6b02ca",
  "rgb": {
    "r": 107,
    "g": 2,
    "b": 202
  },
  "hsl": {
    "h": 271.5,
    "s": 98.039,
    "l": 40
  },
  "oklch": {
    "l": 0.45393,
    "c": 0.24579,
    "h": 296.7
  },
  "luminance": 0.07433
}

Semantic roles & 50–950 ramp

primary
#6B02CA
secondary
#90DD4A
accent
#FF298F
background
#FAF6FD
surface
#F4EBFB
border
#CEC6D4
text
#100615
muted
#7F7A83

Preview Lab

Preview with #6B02CA

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

Preview Lab → · Contrast checker → · Palette generator →

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