#6238BC#6238BC

#6238BC is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.1% C 0.194 H 291.8°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#6238BC
RGBrgb(98, 56, 188)
HSLhsl(259, 54%, 48%)
HSVhsv(259, 70%, 74%)
CMYKcmyk(47.9%, 70.2%, 0%, 26.3%)
CIE-LABlab(36.09, 48.79, -62.93)
CIE-LCHlch(36.09, 79.63, 307.79°)
OKLaboklab(47.05% 0.072 -0.1804)
OKLCHoklch(47.05% 0.194 291.8)
XYZxyz(15.5257, 9.0553, 48.4970)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6238BC #92BC38
analogous
#3850BC #6238BC #A438BC
triadic
#6238BC #BC6238 #38BC62
tetradic
#6238BC #BC3850 #92BC38 #38BCA4
square
#6238BC #BC3850 #92BC38 #38BCA4
split-complementary
#6238BC #BCA438 #50BC38
monochromatic
#311C5E #492A8D #6238BC #8461D0 #A990DE

Accessibility & contrast

On white

7.47
#6238BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6238BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6238BC
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6238BC#FFFFFF#000000##FFFFFF
##6238BC1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#0052B9
Tritanopia (blue-blind)
#465A76
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6238bc;
/* rgb */ color: rgb(98, 56, 188);
/* oklch */ color: oklch(47.1% 0.194 291.8);
Tailwind
colors: {
  custom: {
    50: '#9772d1',
    500: '#6238bc',
    950: '#000000',
  },
}
SCSS
$custom: #6238bc;
$custom-light: #9772d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6238bc",
  "rgb": {
    "r": 98,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 259.091,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47054,
    "c": 0.19423,
    "h": 291.8
  },
  "luminance": 0.09056
}

Semantic roles & 50–950 ramp

primary
#6238BC
secondary
#B4C987
accent
#DD4AAF
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #6238BC

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

Preview Lab → · Contrast checker → · Palette generator →

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