#6D7828#6D7828

#6D7828 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 54.7% C 0.104 H 116.6°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#6D7828
RGBrgb(109, 120, 40)
HSLhsl(68, 50%, 31%)
HSVhsv(68, 67%, 47%)
CMYKcmyk(9.2%, 0%, 66.7%, 52.9%)
CIE-LABlab(48.05, -15.83, 41.03)
CIE-LCHlch(48.05, 43.98, 111.09°)
OKLaboklab(54.68% -0.0468 0.0933)
OKLCHoklch(54.68% 0.104 116.6)
XYZxyz(13.4064, 16.8375, 4.5508)
Luminance0.1684 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D7828 #332878
analogous
#785B28 #6D7828 #457828
triadic
#6D7828 #286D78 #78286D
tetradic
#6D7828 #28785B #332878 #782845
square
#6D7828 #28785B #332878 #782845
split-complementary
#6D7828 #284578 #5B2878
monochromatic
#1A1C09 #434A19 #6D7828 #97A637 #B6C654

Accessibility & contrast

On white

4.81
#6D7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#6D7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D7828
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D7828#FFFFFF#000000##FFFFFF
##6D78281.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80721E
Deuteranopia (green-blind)
#7F732E
Tritanopia (blue-blind)
#747167
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #6d7828;
/* rgb */ color: rgb(109, 120, 40);
/* oklch */ color: oklch(54.7% 0.104 116.6);
Tailwind
colors: {
  custom: {
    50: '#999e66',
    500: '#6d7828',
    950: '#000000',
  },
}
SCSS
$custom: #6d7828;
$custom-light: #999e66;
$custom-dark: #000000;
JSON
{
  "hex": "#6d7828",
  "rgb": {
    "r": 109,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 68.25,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54675,
    "c": 0.10434,
    "h": 116.6
  },
  "luminance": 0.16837
}

Semantic roles & 50–950 ramp

primary
#6D7828
secondary
#5E52AA
accent
#4EDA61
background
#F9F9F6
surface
#F2F2EB
border
#CCCCC6
text
#0E0E06
muted
#7E7E7A

Preview Lab

Preview with #6D7828

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

Preview Lab → · Contrast checker → · Palette generator →

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