#6838BC#6838BC

#6838BC is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.7% C 0.194 H 294.5°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#6838BC
RGBrgb(104, 56, 188)
HSLhsl(262, 54%, 48%)
HSVhsv(262, 70%, 74%)
CMYKcmyk(44.7%, 70.2%, 0%, 26.3%)
CIE-LABlab(36.75, 49.85, -61.83)
CIE-LCHlch(36.75, 79.42, 308.88°)
OKLaboklab(47.67% 0.0806 -0.177)
OKLCHoklch(47.67% 0.194 294.5)
XYZxyz(16.1977, 9.4018, 48.5285)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6838BC #8CBC38
analogous
#384ABC #6838BC #AA38BC
triadic
#6838BC #BC6838 #38BC68
tetradic
#6838BC #BC384A #8CBC38 #38BCAA
square
#6838BC #BC384A #8CBC38 #38BCAA
split-complementary
#6838BC #BCAA38 #4ABC38
monochromatic
#341C5E #4E2A8D #6838BC #8961D0 #AD90DE

Accessibility & contrast

On white

7.29
#6838BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6838BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6838BC
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6838BC#FFFFFF#000000##FFFFFF
##6838BC1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#505976
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6838bc;
/* rgb */ color: rgb(104, 56, 188);
/* oklch */ color: oklch(47.7% 0.194 294.5);
Tailwind
colors: {
  custom: {
    50: '#9a72d1',
    500: '#6838bc',
    950: '#000000',
  },
}
SCSS
$custom: #6838bc;
$custom-light: #9a72d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6838bc",
  "rgb": {
    "r": 104,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 261.818,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47673,
    "c": 0.19446,
    "h": 294.5
  },
  "luminance": 0.09402
}

Semantic roles & 50–950 ramp

primary
#6838BC
secondary
#B1C987
accent
#DD4AA8
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6838BC

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

Preview Lab → · Contrast checker → · Palette generator →

#6838BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva