#6231B4#6231B4

#6231B4 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.193 H 294.5°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#6231B4
RGBrgb(98, 49, 180)
HSLhsl(262, 57%, 45%)
HSVhsv(262, 73%, 71%)
CMYKcmyk(45.6%, 72.8%, 0%, 29.4%)
CIE-LABlab(34.17, 50.14, -61.34)
CIE-LCHlch(34.17, 79.23, 309.26°)
OKLaboklab(45.48% 0.0801 -0.1757)
OKLCHoklch(45.48% 0.193 294.5)
XYZxyz(14.3713, 8.0882, 43.9751)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6231B4 #83B431
analogous
#3141B4 #6231B4 #A431B4
triadic
#6231B4 #B46231 #31B462
tetradic
#6231B4 #B43141 #83B431 #31B4A4
square
#6231B4 #B43141 #83B431 #31B4A4
split-complementary
#6231B4 #B4A431 #41B431
monochromatic
#2E1754 #482484 #6231B4 #8152D0 #A482DD

Accessibility & contrast

On white

8.02
#6231B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#6231B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6231B4
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6231B4#FFFFFF#000000##FFFFFF
##6231B41.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#004EB1
Tritanopia (blue-blind)
#4A5370
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6231b4;
/* rgb */ color: rgb(98, 49, 180);
/* oklch */ color: oklch(45.5% 0.193 294.5);
Tailwind
colors: {
  custom: {
    50: '#966ecb',
    500: '#6231b4',
    950: '#000000',
  },
}
SCSS
$custom: #6231b4;
$custom-light: #966ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#6231b4",
  "rgb": {
    "r": 98,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 262.443,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45481,
    "c": 0.19311,
    "h": 294.5
  },
  "luminance": 0.08089
}

Semantic roles & 50–950 ramp

primary
#6231B4
secondary
#AAC67B
accent
#E047A7
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6231B4

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

Preview Lab → · Contrast checker → · Palette generator →

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