#6238BB#6238BB

#6238BB is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.0% C 0.193 H 292.0°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#6238BB
RGBrgb(98, 56, 187)
HSLhsl(259, 54%, 48%)
HSVhsv(259, 70%, 73%)
CMYKcmyk(47.6%, 70.1%, 0%, 26.7%)
CIE-LABlab(36.01, 48.52, -62.47)
CIE-LCHlch(36.01, 79.10, 307.83°)
OKLaboklab(46.97% 0.0722 -0.1791)
OKLCHoklch(46.97% 0.193 292)
XYZxyz(15.4183, 9.0123, 47.9312)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6238BB #91BB38
analogous
#384FBB #6238BB #A438BB
triadic
#6238BB #BB6238 #38BB62
tetradic
#6238BB #BB384F #91BB38 #38BBA4
square
#6238BB #BB384F #91BB38 #38BBA4
split-complementary
#6238BB #BBA438 #4FBB38
monochromatic
#311C5D #492A8C #6238BB #8461D0 #A990DE

Accessibility & contrast

On white

7.49
#6238BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#6238BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6238BB
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6238BB#FFFFFF#000000##FFFFFF
##6238BB1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#465975
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6238bb;
/* rgb */ color: rgb(98, 56, 187);
/* oklch */ color: oklch(47.0% 0.193 292.0);
Tailwind
colors: {
  custom: {
    50: '#9772d0',
    500: '#6238bb',
    950: '#000000',
  },
}
SCSS
$custom: #6238bb;
$custom-light: #9772d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6238bb",
  "rgb": {
    "r": 98,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 259.237,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4697,
    "c": 0.19307,
    "h": 292
  },
  "luminance": 0.09013
}

Semantic roles & 50–950 ramp

primary
#6238BB
secondary
#B3C886
accent
#DD4BAE
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #6238BB

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

Preview Lab → · Contrast checker → · Palette generator →

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