#6C7828#6C7828

#6C7828 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 54.6% C 0.105 H 117.3°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#6C7828
RGBrgb(108, 120, 40)
HSLhsl(69, 50%, 31%)
HSVhsv(69, 67%, 47%)
CMYKcmyk(10%, 0%, 66.7%, 52.9%)
CIE-LABlab(47.97, -16.27, 40.92)
CIE-LCHlch(47.97, 44.04, 111.69°)
OKLaboklab(54.59% -0.048 0.093)
OKLCHoklch(54.59% 0.105 117.3)
XYZxyz(13.2841, 16.7744, 4.5451)
Luminance0.1677 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C7828 #342878
analogous
#785C28 #6C7828 #447828
triadic
#6C7828 #286C78 #78286C
tetradic
#6C7828 #28785C #342878 #782844
square
#6C7828 #28785C #342878 #782844
split-complementary
#6C7828 #284478 #5C2878
monochromatic
#191C09 #434A19 #6C7828 #95A637 #B5C654

Accessibility & contrast

On white

4.82
#6C7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#6C7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C7828
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C7828#FFFFFF#000000##FFFFFF
##6C78281.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c7828;
/* rgb */ color: rgb(108, 120, 40);
/* oklch */ color: oklch(54.6% 0.105 117.3);
Tailwind
colors: {
  custom: {
    50: '#989e66',
    500: '#6c7828',
    950: '#000000',
  },
}
SCSS
$custom: #6c7828;
$custom-light: #989e66;
$custom-dark: #000000;
JSON
{
  "hex": "#6c7828",
  "rgb": {
    "r": 108,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 69,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54591,
    "c": 0.10469,
    "h": 117.3
  },
  "luminance": 0.16774
}

Semantic roles & 50–950 ramp

primary
#6C7828
secondary
#5F52AA
accent
#4EDA63
background
#F9F9F6
surface
#F2F2EB
border
#CCCCC6
text
#0E0E06
muted
#7E7E7A

Preview Lab

Preview with #6C7828

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

Preview Lab → · Contrast checker → · Palette generator →

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