#6231B8#6231B8

#6231B8 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.198 H 293.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#6231B8
RGBrgb(98, 49, 184)
HSLhsl(262, 58%, 46%)
HSVhsv(262, 73%, 72%)
CMYKcmyk(46.7%, 73.4%, 0%, 27.8%)
CIE-LABlab(34.51, 51.21, -63.16)
CIE-LCHlch(34.51, 81.31, 309.03°)
OKLaboklab(45.83% 0.0792 -0.181)
OKLCHoklch(45.83% 0.198 293.6)
XYZxyz(14.7847, 8.2535, 46.1522)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231B8 #87B831
analogous
#3143B8 #6231B8 #A531B8
triadic
#6231B8 #B86231 #31B862
tetradic
#6231B8 #B83143 #87B831 #31B8A5
square
#6231B8 #B83143 #87B831 #31B8A5
split-complementary
#6231B8 #B8A531 #43B831
monochromatic
#2F1757 #482488 #6231B8 #8255D2 #A585DE

Accessibility & contrast

On white

7.92
#6231B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#6231B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6231B8
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6231B8#FFFFFF#000000##FFFFFF
##6231B81.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#485572
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6231b8;
/* rgb */ color: rgb(98, 49, 184);
/* oklch */ color: oklch(45.8% 0.198 293.6);
Tailwind
colors: {
  custom: {
    50: '#976ece',
    500: '#6231b8',
    950: '#000000',
  },
}
SCSS
$custom: #6231b8;
$custom-light: #976ece;
$custom-dark: #000000;
JSON
{
  "hex": "#6231b8",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 261.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45826,
    "c": 0.19761,
    "h": 293.6
  },
  "luminance": 0.08254
}

Semantic roles & 50–950 ramp

primary
#6231B8
secondary
#ADC87D
accent
#E147A9
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #6231B8

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

Preview Lab → · Contrast checker → · Palette generator →

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