#6231B5#6231B5

#6231B5 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.6% C 0.194 H 294.3°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#6231B5
RGBrgb(98, 49, 181)
HSLhsl(262, 57%, 45%)
HSVhsv(262, 73%, 71%)
CMYKcmyk(45.9%, 72.9%, 0%, 29%)
CIE-LABlab(34.25, 50.41, -61.80)
CIE-LCHlch(34.25, 79.75, 309.20°)
OKLaboklab(45.57% 0.0799 -0.1771)
OKLCHoklch(45.57% 0.194 294.3)
XYZxyz(14.4735, 8.1291, 44.5136)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231B5 #84B531
analogous
#3142B5 #6231B5 #A431B5
triadic
#6231B5 #B56231 #31B562
tetradic
#6231B5 #B53142 #84B531 #31B5A4
square
#6231B5 #B53142 #84B531 #31B5A4
split-complementary
#6231B5 #B5A431 #42B531
monochromatic
#2E1755 #482485 #6231B5 #8153D0 #A583DD

Accessibility & contrast

On white

8.00
#6231B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#6231B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6231B5
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6231B5#FFFFFF#000000##FFFFFF
##6231B51.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#4A5370
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6231b5;
/* rgb */ color: rgb(98, 49, 181);
/* oklch */ color: oklch(45.6% 0.194 294.3);
Tailwind
colors: {
  custom: {
    50: '#966ecc',
    500: '#6231b5',
    950: '#000000',
  },
}
SCSS
$custom: #6231b5;
$custom-light: #966ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#6231b5",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 262.273,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45567,
    "c": 0.19424,
    "h": 294.3
  },
  "luminance": 0.08129
}

Semantic roles & 50–950 ramp

primary
#6231B5
secondary
#ABC77B
accent
#E147A8
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6231B5

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

Preview Lab → · Contrast checker → · Palette generator →

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