#6B7828#6B7828

#6B7828 is a mid, moderate yellow. Relative luminance 0.167; OKLCH L 54.5% C 0.105 H 117.9°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#6B7828
RGBrgb(107, 120, 40)
HSLhsl(70, 50%, 31%)
HSVhsv(70, 67%, 47%)
CMYKcmyk(10.8%, 0%, 66.7%, 52.9%)
CIE-LABlab(47.90, -16.72, 40.81)
CIE-LCHlch(47.90, 44.11, 112.28°)
OKLaboklab(54.51% -0.0492 0.0929)
OKLCHoklch(54.51% 0.105 117.9)
XYZxyz(13.1631, 16.7121, 4.5394)
Luminance0.1671 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B7828 #352878
analogous
#785D28 #6B7828 #437828
triadic
#6B7828 #286B78 #78286B
tetradic
#6B7828 #28785D #352878 #782843
square
#6B7828 #28785D #352878 #782843
split-complementary
#6B7828 #284378 #5D2878
monochromatic
#191C09 #424A19 #6B7828 #94A637 #B4C654

Accessibility & contrast

On white

4.84
#6B7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#6B7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B7828
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B7828#FFFFFF#000000##FFFFFF
##6B78281.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80711E
Deuteranopia (green-blind)
#7F722E
Tritanopia (blue-blind)
#717167
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #6b7828;
/* rgb */ color: rgb(107, 120, 40);
/* oklch */ color: oklch(54.5% 0.105 117.9);
Tailwind
colors: {
  custom: {
    50: '#989e66',
    500: '#6b7828',
    950: '#000000',
  },
}
SCSS
$custom: #6b7828;
$custom-light: #989e66;
$custom-dark: #000000;
JSON
{
  "hex": "#6b7828",
  "rgb": {
    "r": 107,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 69.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54507,
    "c": 0.10506,
    "h": 117.9
  },
  "luminance": 0.16712
}

Semantic roles & 50–950 ramp

primary
#6B7828
secondary
#6052AA
accent
#4EDA65
background
#F9F9F6
surface
#F2F2EB
border
#CCCCC6
text
#0E0E06
muted
#7E7E7A

Preview Lab

Preview with #6B7828

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

Preview Lab → · Contrast checker → · Palette generator →

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