#6A38CB#6A38CB

#6A38CB is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.1% C 0.212 H 292.4°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#6A38CB
RGBrgb(106, 56, 203)
HSLhsl(260, 59%, 51%)
HSVhsv(260, 72%, 80%)
CMYKcmyk(47.8%, 72.4%, 0%, 20.4%)
CIE-LABlab(38.21, 54.20, -68.20)
CIE-LCHlch(38.21, 87.12, 308.47°)
OKLaboklab(49.14% 0.0804 -0.1956)
OKLCHoklch(49.14% 0.212 292.4)
XYZxyz(18.1345, 10.2037, 57.5023)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A38CB #99CB38
analogous
#384FCB #6A38CB #B338CB
triadic
#6A38CB #CB6A38 #38CB6A
tetradic
#6A38CB #CB384F #99CB38 #38CBB3
square
#6A38CB #CB384F #99CB38 #38CBB3
split-complementary
#6A38CB #CBB338 #4FCB38
monochromatic
#381C6C #50299D #6A38CB #8E69D8 #B399E4

Accessibility & contrast

On white

6.91
#6A38CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6A38CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A38CB
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A38CB#FFFFFF#000000##FFFFFF
##6A38CB1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCF
Deuteranopia (green-blind)
#0057C8
Tritanopia (blue-blind)
#4B5F7E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6a38cb;
/* rgb */ color: rgb(106, 56, 203);
/* oklch */ color: oklch(49.1% 0.212 292.4);
Tailwind
colors: {
  custom: {
    50: '#9d73dc',
    500: '#6a38cb',
    950: '#000000',
  },
}
SCSS
$custom: #6a38cb;
$custom-light: #9d73dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6a38cb",
  "rgb": {
    "r": 106,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 260.408,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.49142,
    "c": 0.21151,
    "h": 292.4
  },
  "luminance": 0.10204
}

Semantic roles & 50–950 ramp

primary
#6A38CB
secondary
#BAD08F
accent
#E246AD
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6A38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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