#6A7828#6A7828

#6A7828 is a mid, moderate yellow-green. Relative luminance 0.167; OKLCH L 54.4% C 0.105 H 118.5°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#6A7828
RGBrgb(106, 120, 40)
HSLhsl(71, 50%, 31%)
HSVhsv(71, 67%, 47%)
CMYKcmyk(11.7%, 0%, 66.7%, 52.9%)
CIE-LABlab(47.82, -17.17, 40.71)
CIE-LCHlch(47.82, 44.18, 112.87°)
OKLaboklab(54.42% -0.0503 0.0926)
OKLCHoklch(54.42% 0.105 118.5)
XYZxyz(13.0436, 16.6504, 4.5338)
Luminance0.1665 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A7828 #362878
analogous
#785E28 #6A7828 #427828
triadic
#6A7828 #286A78 #78286A
tetradic
#6A7828 #28785E #362878 #782842
square
#6A7828 #28785E #362878 #782842
split-complementary
#6A7828 #284278 #5E2878
monochromatic
#191C09 #414A19 #6A7828 #93A637 #B2C654

Accessibility & contrast

On white

4.85
#6A7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#6A7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A7828
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A7828#FFFFFF#000000##FFFFFF
##6A78281.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80711E
Deuteranopia (green-blind)
#7E722E
Tritanopia (blue-blind)
#707167
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #6a7828;
/* rgb */ color: rgb(106, 120, 40);
/* oklch */ color: oklch(54.4% 0.105 118.5);
Tailwind
colors: {
  custom: {
    50: '#979f66',
    500: '#6a7828',
    950: '#000000',
  },
}
SCSS
$custom: #6a7828;
$custom-light: #979f66;
$custom-dark: #000000;
JSON
{
  "hex": "#6a7828",
  "rgb": {
    "r": 106,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 70.5,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54424,
    "c": 0.10543,
    "h": 118.5
  },
  "luminance": 0.1665
}

Semantic roles & 50–950 ramp

primary
#6A7828
secondary
#6152AA
accent
#4EDA67
background
#F9F9F6
surface
#F2F2EB
border
#CCCCC6
text
#0E0E06
muted
#7E7E7A

Preview Lab

Preview with #6A7828

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

Preview Lab → · Contrast checker → · Palette generator →

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