#6938CB#6938CB

#6938CB is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.0% C 0.211 H 291.9°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#6938CB
RGBrgb(105, 56, 203)
HSLhsl(260, 59%, 51%)
HSVhsv(260, 72%, 80%)
CMYKcmyk(48.3%, 72.4%, 0%, 20.4%)
CIE-LABlab(38.10, 54.04, -68.38)
CIE-LCHlch(38.10, 87.16, 308.32°)
OKLaboklab(49.04% 0.079 -0.1962)
OKLCHoklch(49.04% 0.211 291.9)
XYZxyz(18.0163, 10.1427, 57.4968)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6938CB #9ACB38
analogous
#3850CB #6938CB #B238CB
triadic
#6938CB #CB6938 #38CB69
tetradic
#6938CB #CB3850 #9ACB38 #38CBB2
square
#6938CB #CB3850 #9ACB38 #38CBB2
split-complementary
#6938CB #CBB238 #50CB38
monochromatic
#371C6C #50299D #6938CB #8E69D8 #B299E4

Accessibility & contrast

On white

6.93
#6938CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6938CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6938CB
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6938CB#FFFFFF#000000##FFFFFF
##6938CB1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCF
Deuteranopia (green-blind)
#0057C8
Tritanopia (blue-blind)
#4A5F7E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6938cb;
/* rgb */ color: rgb(105, 56, 203);
/* oklch */ color: oklch(49.0% 0.211 291.9);
Tailwind
colors: {
  custom: {
    50: '#9d73dc',
    500: '#6938cb',
    950: '#000000',
  },
}
SCSS
$custom: #6938cb;
$custom-light: #9d73dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6938cb",
  "rgb": {
    "r": 105,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 260,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.49041,
    "c": 0.21149,
    "h": 291.9
  },
  "luminance": 0.10143
}

Semantic roles & 50–950 ramp

primary
#6938CB
secondary
#BAD08F
accent
#E246AE
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6938CB

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

Preview Lab → · Contrast checker → · Palette generator →

#6938CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva