#6238CF#6238CF

#6238CF is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.7% C 0.216 H 288.3°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#6238CF
RGBrgb(98, 56, 207)
HSLhsl(257, 61%, 52%)
HSVhsv(257, 73%, 81%)
CMYKcmyk(52.7%, 72.9%, 0%, 18.8%)
CIE-LABlab(37.72, 54.05, -71.36)
CIE-LCHlch(37.72, 89.52, 307.14°)
OKLaboklab(48.71% 0.068 -0.2051)
OKLCHoklch(48.71% 0.216 288.3)
XYZxyz(17.7104, 9.9292, 60.0027)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6238CF #A5CF38
analogous
#385ACF #6238CF #AE38CF
triadic
#6238CF #CF6238 #38CF62
tetradic
#6238CF #CF385A #A5CF38 #38CFAE
square
#6238CF #CF385A #A5CF38 #38CFAE
split-complementary
#6238CF #CFAE38 #5ACF38
monochromatic
#331B71 #4A27A3 #6238CF #8969DB #B09BE7

Accessibility & contrast

On white

7.03
#6238CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#6238CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6238CF
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6238CF#FFFFFF#000000##FFFFFF
##6238CF1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD3
Deuteranopia (green-blind)
#0055CC
Tritanopia (blue-blind)
#376180
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6238cf;
/* rgb */ color: rgb(98, 56, 207);
/* oklch */ color: oklch(48.7% 0.216 288.3);
Tailwind
colors: {
  custom: {
    50: '#9973df',
    500: '#6238cf',
    950: '#000000',
  },
}
SCSS
$custom: #6238cf;
$custom-light: #9973df;
$custom-dark: #000000;
JSON
{
  "hex": "#6238cf",
  "rgb": {
    "r": 98,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 256.689,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48707,
    "c": 0.21611,
    "h": 288.3
  },
  "luminance": 0.0993
}

Semantic roles & 50–950 ramp

primary
#6238CF
secondary
#C0D390
accent
#E444B8
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6238CF

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

Preview Lab → · Contrast checker → · Palette generator →

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