#6338CA#6338CA

#6338CA is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.4% C 0.210 H 289.6°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#6338CA
RGBrgb(99, 56, 202)
HSLhsl(258, 58%, 51%)
HSVhsv(258, 72%, 79%)
CMYKcmyk(51%, 72.3%, 0%, 20.8%)
CIE-LABlab(37.38, 52.82, -69.00)
CIE-LCHlch(37.38, 86.90, 307.43°)
OKLaboklab(48.36% 0.0706 -0.1982)
OKLCHoklch(48.36% 0.21 289.6)
XYZxyz(17.2174, 9.7445, 56.8393)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338CA #9FCA38
analogous
#3856CA #6338CA #AC38CA
triadic
#6338CA #CA6338 #38CA63
tetradic
#6338CA #CA3856 #9FCA38 #38CAAC
square
#6338CA #CA3856 #9FCA38 #38CAAC
split-complementary
#6338CA #CAAC38 #56CA38
monochromatic
#341D6B #4B299B #6338CA #8968D7 #AF99E4

Accessibility & contrast

On white

7.12
#6338CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#6338CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338CA
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338CA#FFFFFF#000000##FFFFFF
##6338CA1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#3E5F7E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6338ca;
/* rgb */ color: rgb(99, 56, 202);
/* oklch */ color: oklch(48.4% 0.210 289.6);
Tailwind
colors: {
  custom: {
    50: '#9973db',
    500: '#6338ca',
    950: '#000000',
  },
}
SCSS
$custom: #6338ca;
$custom-light: #9973db;
$custom-dark: #000000;
JSON
{
  "hex": "#6338ca",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 257.671,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.4836,
    "c": 0.21039,
    "h": 289.6
  },
  "luminance": 0.09745
}

Semantic roles & 50–950 ramp

primary
#6338CA
secondary
#BCCF8E
accent
#E147B4
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6338CA

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

Preview Lab → · Contrast checker → · Palette generator →

#6338CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva