#6238BD#6238BD

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

Color values

HEX#6238BD
RGBrgb(98, 56, 189)
HSLhsl(259, 54%, 48%)
HSVhsv(259, 70%, 74%)
CMYKcmyk(48.1%, 70.4%, 0%, 25.9%)
CIE-LABlab(36.17, 49.07, -63.38)
CIE-LCHlch(36.17, 80.16, 307.75°)
OKLaboklab(47.14% 0.0718 -0.1817)
OKLCHoklch(47.14% 0.195 291.6)
XYZxyz(15.6339, 9.0986, 49.0667)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6238BD #93BD38
analogous
#3851BD #6238BD #A438BD
triadic
#6238BD #BD6238 #38BD62
tetradic
#6238BD #BD3851 #93BD38 #38BDA4
square
#6238BD #BD3851 #93BD38 #38BDA4
split-complementary
#6238BD #BDA438 #51BD38
monochromatic
#311C5F #4A2A8E #6238BD #8562D0 #A991DE

Accessibility & contrast

On white

7.45
#6238BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#6238BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6238BD
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6238BD#FFFFFF#000000##FFFFFF
##6238BD1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#0052BA
Tritanopia (blue-blind)
#455A76
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6238bd;
/* rgb */ color: rgb(98, 56, 189);
/* oklch */ color: oklch(47.1% 0.195 291.6);
Tailwind
colors: {
  custom: {
    50: '#9772d2',
    500: '#6238bd',
    950: '#000000',
  },
}
SCSS
$custom: #6238bd;
$custom-light: #9772d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6238bd",
  "rgb": {
    "r": 98,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 258.947,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47139,
    "c": 0.1954,
    "h": 291.6
  },
  "luminance": 0.09099
}

Semantic roles & 50–950 ramp

primary
#6238BD
secondary
#B5C987
accent
#DE4AAF
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #6238BD

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

Preview Lab → · Contrast checker → · Palette generator →

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