#6238CD#6238CD

#6238CD is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.5% C 0.214 H 288.7°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#6238CD
RGBrgb(98, 56, 205)
HSLhsl(257, 60%, 51%)
HSVhsv(257, 73%, 80%)
CMYKcmyk(52.2%, 72.7%, 0%, 19.6%)
CIE-LABlab(37.54, 53.50, -70.49)
CIE-LCHlch(37.54, 88.49, 307.20°)
OKLaboklab(48.53% 0.0685 -0.2026)
OKLCHoklch(48.53% 0.214 288.7)
XYZxyz(17.4674, 9.8320, 58.7231)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6238CD #A3CD38
analogous
#3858CD #6238CD #AC38CD
triadic
#6238CD #CD6238 #38CD62
tetradic
#6238CD #CD3858 #A3CD38 #38CDAC
square
#6238CD #CD3858 #A3CD38 #38CDAC
split-complementary
#6238CD #CDAC38 #58CD38
monochromatic
#331C6F #4A28A0 #6238CD #8969D9 #AF9AE6

Accessibility & contrast

On white

7.08
#6238CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#6238CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6238CD
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6238CD#FFFFFF#000000##FFFFFF
##6238CD1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#0055CA
Tritanopia (blue-blind)
#39607F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6238cd;
/* rgb */ color: rgb(98, 56, 205);
/* oklch */ color: oklch(48.5% 0.214 288.7);
Tailwind
colors: {
  custom: {
    50: '#9973dd',
    500: '#6238cd',
    950: '#000000',
  },
}
SCSS
$custom: #6238cd;
$custom-light: #9973dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6238cd",
  "rgb": {
    "r": 98,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 256.913,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48529,
    "c": 0.21384,
    "h": 288.7
  },
  "luminance": 0.09833
}

Semantic roles & 50–950 ramp

primary
#6238CD
secondary
#BFD18F
accent
#E345B6
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6238CD

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

Preview Lab → · Contrast checker → · Palette generator →

#6238CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva