#6338CB#6338CB

#6338CB is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.4% C 0.212 H 289.4°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#6338CB
RGBrgb(99, 56, 203)
HSLhsl(258, 59%, 51%)
HSVhsv(258, 72%, 80%)
CMYKcmyk(51.2%, 72.4%, 0%, 20.4%)
CIE-LABlab(37.47, 53.10, -69.44)
CIE-LCHlch(37.47, 87.42, 307.40°)
OKLaboklab(48.45% 0.0704 -0.1995)
OKLCHoklch(48.45% 0.212 289.4)
XYZxyz(17.3361, 9.7920, 57.4649)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338CB #A0CB38
analogous
#3856CB #6338CB #AC38CB
triadic
#6338CB #CB6338 #38CB63
tetradic
#6338CB #CB3856 #A0CB38 #38CBAC
square
#6338CB #CB3856 #A0CB38 #38CBAC
split-complementary
#6338CB #CBAC38 #56CB38
monochromatic
#341C6C #4B299D #6338CB #8969D8 #AF99E4

Accessibility & contrast

On white

7.10
#6338CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#6338CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338CB
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338CB#FFFFFF#000000##FFFFFF
##6338CB1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCF
Deuteranopia (green-blind)
#0055C8
Tritanopia (blue-blind)
#3D5F7E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6338cb;
/* rgb */ color: rgb(99, 56, 203);
/* oklch */ color: oklch(48.4% 0.212 289.4);
Tailwind
colors: {
  custom: {
    50: '#9973dc',
    500: '#6338cb',
    950: '#000000',
  },
}
SCSS
$custom: #6338cb;
$custom-light: #9973dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6338cb",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 257.551,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48448,
    "c": 0.21152,
    "h": 289.4
  },
  "luminance": 0.09793
}

Semantic roles & 50–950 ramp

primary
#6338CB
secondary
#BDD08F
accent
#E246B4
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6338CB

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

Preview Lab → · Contrast checker → · Palette generator →

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