#6B6817#6B6817

#6B6817 is a mid, moderate yellow. Relative luminance 0.131; OKLCH L 50.5% C 0.099 H 107.3°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#6B6817
RGBrgb(107, 104, 23)
HSLhsl(58, 65%, 25%)
HSVhsv(58, 79%, 42%)
CMYKcmyk(0%, 2.8%, 78.5%, 58%)
CIE-LABlab(42.90, -8.96, 42.88)
CIE-LCHlch(42.90, 43.80, 101.81°)
OKLaboklab(50.47% -0.0293 0.0941)
OKLCHoklch(50.47% 0.099 107.3)
XYZxyz(11.1688, 13.0887, 2.7485)
Luminance0.1309 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B6817 #171A6B
analogous
#6B3E17 #6B6817 #446B17
triadic
#6B6817 #176B68 #68176B
tetradic
#6B6817 #176B3E #171A6B #6B1744
square
#6B6817 #176B3E #171A6B #6B1744
split-complementary
#6B6817 #17446B #3E176B
monochromatic
#191805 #39370C #6B6817 #9D9922 #D0CA2D

Accessibility & contrast

On white

5.80
#6B6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#6B6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B6817
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B6817#FFFFFF#000000##FFFFFF
##6B68171.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716406
Deuteranopia (green-blind)
#73671D
Tritanopia (blue-blind)
#736159
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6b6817;
/* rgb */ color: rgb(107, 104, 23);
/* oklch */ color: oklch(50.5% 0.099 107.3);
Tailwind
colors: {
  custom: {
    50: '#98925b',
    500: '#6b6817',
    950: '#000000',
  },
}
SCSS
$custom: #6b6817;
$custom-light: #98925b;
$custom-dark: #000000;
JSON
{
  "hex": "#6b6817",
  "rgb": {
    "r": 107,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 57.857,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.50466,
    "c": 0.09858,
    "h": 107.3
  },
  "luminance": 0.13088
}

Semantic roles & 50–950 ramp

primary
#6B6817
secondary
#3D40A1
accent
#46E840
background
#F9F8F5
surface
#F2F0E9
border
#CCCBC5
text
#0E0D04
muted
#7E7D79

Preview Lab

Preview with #6B6817

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

Preview Lab → · Contrast checker → · Palette generator →

#6B6817 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva