#6231BC#6231BC

#6231BC is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.2% C 0.202 H 292.8°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#6231BC
RGBrgb(98, 49, 188)
HSLhsl(261, 59%, 46%)
HSVhsv(261, 74%, 74%)
CMYKcmyk(47.9%, 73.9%, 0%, 26.3%)
CIE-LABlab(34.85, 52.28, -64.96)
CIE-LCHlch(34.85, 83.38, 308.83°)
OKLaboklab(46.18% 0.0783 -0.1863)
OKLCHoklch(46.18% 0.202 292.8)
XYZxyz(15.2099, 8.4236, 48.3917)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231BC #8BBC31
analogous
#3146BC #6231BC #A831BC
triadic
#6231BC #BC6231 #31BC62
tetradic
#6231BC #BC3146 #8BBC31 #31BCA8
square
#6231BC #BC3146 #8BBC31 #31BCA8
split-complementary
#6231BC #BCA831 #46BC31
monochromatic
#2F185B #49248B #6231BC #8357D3 #A788E0

Accessibility & contrast

On white

7.82
#6231BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#6231BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6231BC
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6231BC#FFFFFF#000000##FFFFFF
##6231BC1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C0
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#465674
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6231bc;
/* rgb */ color: rgb(98, 49, 188);
/* oklch */ color: oklch(46.2% 0.202 292.8);
Tailwind
colors: {
  custom: {
    50: '#976ed1',
    500: '#6231bc',
    950: '#000000',
  },
}
SCSS
$custom: #6231bc;
$custom-light: #976ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#6231bc",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 261.151,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46175,
    "c": 0.20209,
    "h": 292.8
  },
  "luminance": 0.08424
}

Semantic roles & 50–950 ramp

primary
#6231BC
secondary
#AFCA7F
accent
#E246AB
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0F0714
muted
#7E7A83

Preview Lab

Preview with #6231BC

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

Preview Lab → · Contrast checker → · Palette generator →

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