#6238CB#6238CB

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

Color values

HEX#6238CB
RGBrgb(98, 56, 203)
HSLhsl(257, 59%, 51%)
HSVhsv(257, 72%, 80%)
CMYKcmyk(51.7%, 72.4%, 0%, 20.4%)
CIE-LABlab(37.36, 52.95, -69.61)
CIE-LCHlch(37.36, 87.46, 307.26°)
OKLaboklab(48.35% 0.0689 -0.2)
OKLCHoklch(48.35% 0.212 289)
XYZxyz(17.2275, 9.7360, 57.4598)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6238CB #A1CB38
analogous
#3857CB #6238CB #AC38CB
triadic
#6238CB #CB6238 #38CB62
tetradic
#6238CB #CB3857 #A1CB38 #38CBAC
square
#6238CB #CB3857 #A1CB38 #38CBAC
split-complementary
#6238CB #CBAC38 #57CB38
monochromatic
#331C6C #4A299D #6238CB #8869D8 #AF99E4

Accessibility & contrast

On white

7.12
#6238CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#6238CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6238CB
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6238CB#FFFFFF#000000##FFFFFF
##6238CB1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6238cb;
/* rgb */ color: rgb(98, 56, 203);
/* oklch */ color: oklch(48.4% 0.212 289.0);
Tailwind
colors: {
  custom: {
    50: '#9973dc',
    500: '#6238cb',
    950: '#000000',
  },
}
SCSS
$custom: #6238cb;
$custom-light: #9973dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6238cb",
  "rgb": {
    "r": 98,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 257.143,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48351,
    "c": 0.21156,
    "h": 289
  },
  "luminance": 0.09737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6238CB

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

Preview Lab → · Contrast checker → · Palette generator →

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