#7F7828#7F7828

#7F7828 is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.3% C 0.100 H 104.3°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7F7828
RGBrgb(127, 120, 40)
HSLhsl(55, 52%, 33%)
HSVhsv(55, 69%, 50%)
CMYKcmyk(0%, 5.5%, 68.5%, 50.2%)
CIE-LABlab(49.62, -7.60, 43.15)
CIE-LCHlch(49.62, 43.81, 99.99°)
OKLaboklab(56.3% -0.0248 0.0972)
OKLCHoklch(56.3% 0.1 104.3)
XYZxyz(15.8525, 18.0988, 4.6654)
Luminance0.1810 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7828 #282F7F
analogous
#7F4C28 #7F7828 #5B7F28
triadic
#7F7828 #287F78 #78287F
tetradic
#7F7828 #287F4C #282F7F #7F285B
square
#7F7828 #287F4C #282F7F #7F285B
split-complementary
#7F7828 #285B7F #4C287F
monochromatic
#22200B #504C19 #7F7828 #AEA437 #CAC157

Accessibility & contrast

On white

4.55
#7F7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#7F7828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7828
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7828#FFFFFF#000000##000000
##7F78281.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#83741D
Deuteranopia (green-blind)
#85782D
Tritanopia (blue-blind)
#897068
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f7828;
/* rgb */ color: rgb(127, 120, 40);
/* oklch */ color: oklch(56.3% 0.100 104.3);
Tailwind
colors: {
  custom: {
    50: '#a79e67',
    500: '#7f7828',
    950: '#000000',
  },
}
SCSS
$custom: #7f7828;
$custom-light: #a79e67;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7828",
  "rgb": {
    "r": 127,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 55.172,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56304,
    "c": 0.10032,
    "h": 104.3
  },
  "luminance": 0.18098
}

Semantic roles & 50–950 ramp

primary
#7F7828
secondary
#545BAF
accent
#58DC4C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7F7828

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

Preview Lab → · Contrast checker → · Palette generator →

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