#6338AD#6338AD

#6338AD is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.9% C 0.177 H 295.5°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#6338AD
RGBrgb(99, 56, 173)
HSLhsl(262, 51%, 45%)
HSVhsv(262, 68%, 68%)
CMYKcmyk(42.8%, 67.6%, 0%, 32.2%)
CIE-LABlab(35.00, 44.87, -55.82)
CIE-LCHlch(35.00, 71.61, 308.79°)
OKLaboklab(45.93% 0.0759 -0.1595)
OKLCHoklch(45.93% 0.177 295.5)
XYZxyz(14.1006, 8.4978, 40.4244)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338AD #82AD38
analogous
#3848AD #6338AD #9D38AD
triadic
#6338AD #AD6338 #38AD63
tetradic
#6338AD #AD3848 #82AD38 #38AD9D
square
#6338AD #AD3848 #82AD38 #38AD9D
split-complementary
#6338AD #AD9D38 #48AD38
monochromatic
#2E1A51 #49297F #6338AD #8259C9 #A587D8

Accessibility & contrast

On white

7.78
#6338AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6338AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338AD
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338AD#FFFFFF#000000##FFFFFF
##6338AD1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#0051AB
Tritanopia (blue-blind)
#4F546E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6338ad;
/* rgb */ color: rgb(99, 56, 173);
/* oklch */ color: oklch(45.9% 0.177 295.5);
Tailwind
colors: {
  custom: {
    50: '#9572c6',
    500: '#6338ad',
    950: '#000000',
  },
}
SCSS
$custom: #6338ad;
$custom-light: #9572c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6338ad",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 262.051,
    "s": 51.092,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45925,
    "c": 0.17661,
    "h": 295.5
  },
  "luminance": 0.08498
}

Semantic roles & 50–950 ramp

primary
#6338AD
secondary
#A9C27F
accent
#DB4DA7
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6338AD

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

Preview Lab → · Contrast checker → · Palette generator →

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