#6238BE#6238BE

#6238BE is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.2% C 0.197 H 291.4°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#6238BE
RGBrgb(98, 56, 190)
HSLhsl(259, 54%, 48%)
HSVhsv(259, 71%, 75%)
CMYKcmyk(48.4%, 70.5%, 0%, 25.5%)
CIE-LABlab(36.26, 49.35, -63.83)
CIE-LCHlch(36.26, 80.68, 307.71°)
OKLaboklab(47.22% 0.0716 -0.1831)
OKLCHoklch(47.22% 0.197 291.4)
XYZxyz(15.7428, 9.1421, 49.6403)
Luminance0.0914 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6238BE #94BE38
analogous
#3851BE #6238BE #A538BE
triadic
#6238BE #BE6238 #38BE62
tetradic
#6238BE #BE3851 #94BE38 #38BEA5
square
#6238BE #BE3851 #94BE38 #38BEA5
split-complementary
#6238BE #BEA538 #51BE38
monochromatic
#311C5F #4A2A8F #6238BE #8562D1 #AA92DF

Accessibility & contrast

On white

7.42
#6238BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#6238BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6238BE
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6238BE#FFFFFF#000000##FFFFFF
##6238BE1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#0052BB
Tritanopia (blue-blind)
#445A77
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6238be;
/* rgb */ color: rgb(98, 56, 190);
/* oklch */ color: oklch(47.2% 0.197 291.4);
Tailwind
colors: {
  custom: {
    50: '#9772d3',
    500: '#6238be',
    950: '#000000',
  },
}
SCSS
$custom: #6238be;
$custom-light: #9772d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6238be",
  "rgb": {
    "r": 98,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 258.806,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47224,
    "c": 0.19657,
    "h": 291.4
  },
  "luminance": 0.09143
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6238BE

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

Preview Lab → · Contrast checker → · Palette generator →

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