#6338AF#6338AF

#6338AF is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.1% C 0.179 H 295.0°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#6338AF
RGBrgb(99, 56, 175)
HSLhsl(262, 52%, 45%)
HSVhsv(262, 68%, 69%)
CMYKcmyk(43.4%, 68%, 0%, 31.4%)
CIE-LABlab(35.15, 45.41, -56.75)
CIE-LCHlch(35.15, 72.69, 308.66°)
OKLaboklab(46.09% 0.0756 -0.1622)
OKLCHoklch(46.09% 0.179 295)
XYZxyz(14.2956, 8.5758, 41.4512)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338AF #84AF38
analogous
#3848AF #6338AF #9F38AF
triadic
#6338AF #AF6338 #38AF63
tetradic
#6338AF #AF3848 #84AF38 #38AF9F
square
#6338AF #AF3848 #84AF38 #38AF9F
split-complementary
#6338AF #AF9F38 #48AF38
monochromatic
#2F1A52 #492981 #6338AF #835ACA #A688D9

Accessibility & contrast

On white

7.73
#6338AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6338AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338AF
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338AF#FFFFFF#000000##FFFFFF
##6338AF1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#4E556F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6338af;
/* rgb */ color: rgb(99, 56, 175);
/* oklch */ color: oklch(46.1% 0.179 295.0);
Tailwind
colors: {
  custom: {
    50: '#9672c8',
    500: '#6338af',
    950: '#000000',
  },
}
SCSS
$custom: #6338af;
$custom-light: #9672c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6338af",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 261.681,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46085,
    "c": 0.17898,
    "h": 295
  },
  "luminance": 0.08576
}

Semantic roles & 50–950 ramp

primary
#6338AF
secondary
#ABC380
accent
#DB4DA8
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6338AF

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

Preview Lab → · Contrast checker → · Palette generator →

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