#6F7828#6F7828

#6F7828 is a mid, moderate yellow. Relative luminance 0.170; OKLCH L 54.8% C 0.104 H 115.4°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#6F7828
RGBrgb(111, 120, 40)
HSLhsl(67, 50%, 31%)
HSVhsv(67, 67%, 47%)
CMYKcmyk(7.5%, 0%, 66.7%, 52.9%)
CIE-LABlab(48.22, -14.92, 41.25)
CIE-LCHlch(48.22, 43.87, 109.89°)
OKLaboklab(54.85% -0.0444 0.0937)
OKLCHoklch(54.85% 0.104 115.4)
XYZxyz(13.6553, 16.9659, 4.5625)
Luminance0.1697 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F7828 #312878
analogous
#785928 #6F7828 #477828
triadic
#6F7828 #286F78 #78286F
tetradic
#6F7828 #287859 #312878 #782847
square
#6F7828 #287859 #312878 #782847
split-complementary
#6F7828 #284778 #592878
monochromatic
#1A1C09 #454A19 #6F7828 #99A637 #B9C654

Accessibility & contrast

On white

4.78
#6F7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#6F7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6F7828
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F7828#FFFFFF#000000##FFFFFF
##6F78281.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80721E
Deuteranopia (green-blind)
#80732D
Tritanopia (blue-blind)
#767168
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #6f7828;
/* rgb */ color: rgb(111, 120, 40);
/* oklch */ color: oklch(54.8% 0.104 115.4);
Tailwind
colors: {
  custom: {
    50: '#9b9e66',
    500: '#6f7828',
    950: '#000000',
  },
}
SCSS
$custom: #6f7828;
$custom-light: #9b9e66;
$custom-dark: #000000;
JSON
{
  "hex": "#6f7828",
  "rgb": {
    "r": 111,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 66.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54846,
    "c": 0.10366,
    "h": 115.4
  },
  "luminance": 0.16966
}

Semantic roles & 50–950 ramp

primary
#6F7828
secondary
#5C52AA
accent
#4EDA5E
background
#F9F9F6
surface
#F2F2EB
border
#CCCCC6
text
#0E0E06
muted
#7E7E7A

Preview Lab

Preview with #6F7828

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

Preview Lab → · Contrast checker → · Palette generator →

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