#6123D4#6123D4

#6123D4 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.9% C 0.240 H 289.2°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#6123D4
RGBrgb(97, 35, 212)
HSLhsl(261, 72%, 48%)
HSVhsv(261, 83%, 83%)
CMYKcmyk(54.2%, 83.5%, 0%, 16.9%)
CIE-LABlab(35.00, 64.16, -78.73)
CIE-LCHlch(35.00, 101.56, 309.18°)
OKLaboklab(46.93% 0.0789 -0.2265)
OKLCHoklch(46.93% 0.24 289.2)
XYZxyz(17.4110, 8.4961, 62.9971)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6123D4 #96D423
analogous
#233DD4 #6123D4 #B923D4
triadic
#6123D4 #D46123 #23D461
tetradic
#6123D4 #D4233D #96D423 #23D4B9
square
#6123D4 #D4233D #96D423 #23D4B9
split-complementary
#6123D4 #D4B923 #3DD423
monochromatic
#31126B #491A9F #6123D4 #8452E2 #AA86EB

Accessibility & contrast

On white

7.78
#6123D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6123D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6123D4
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6123D4#FFFFFF#000000##FFFFFF
##6123D41.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D9
Deuteranopia (green-blind)
#004ED1
Tritanopia (blue-blind)
#315B7F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6123d4;
/* rgb */ color: rgb(97, 35, 212);
/* oklch */ color: oklch(46.9% 0.240 289.2);
Tailwind
colors: {
  custom: {
    50: '#9b68e3',
    500: '#6123d4',
    950: '#000000',
  },
}
SCSS
$custom: #6123d4;
$custom-light: #9b68e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6123d4",
  "rgb": {
    "r": 97,
    "g": 35,
    "b": 212
  },
  "hsl": {
    "h": 261.017,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46932,
    "c": 0.23987,
    "h": 289.2
  },
  "luminance": 0.08497
}

Semantic roles & 50–950 ramp

primary
#6123D4
secondary
#B6D47E
accent
#EE39AF
background
#FAF6FE
surface
#F4EBFC
border
#CEC6D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #6123D4

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

Preview Lab → · Contrast checker → · Palette generator →

#6123D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva