#7F7428#7F7428

#7F7428 is a mid, moderate yellow. Relative luminance 0.172; OKLCH L 55.4% C 0.096 H 101.0°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#7F7428
RGBrgb(127, 116, 40)
HSLhsl(52, 52%, 33%)
HSVhsv(52, 69%, 50%)
CMYKcmyk(0%, 8.7%, 68.5%, 50.2%)
CIE-LABlab(48.46, -5.36, 41.94)
CIE-LCHlch(48.46, 42.28, 97.28°)
OKLaboklab(55.38% -0.0184 0.0947)
OKLCHoklch(55.38% 0.096 101)
XYZxyz(15.3814, 17.1567, 4.5084)
Luminance0.1716 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7428 #28337F
analogous
#7F4928 #7F7428 #5E7F28
triadic
#7F7428 #287F74 #74287F
tetradic
#7F7428 #287F49 #28337F #7F285E
square
#7F7428 #287F49 #28337F #7F285E
split-complementary
#7F7428 #285E7F #49287F
monochromatic
#221F0B #504919 #7F7428 #AE9F37 #CABC57

Accessibility & contrast

On white

4.74
#7F7428 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#7F7428 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7428
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7428#FFFFFF#000000##FFFFFF
##7F74281.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F711E
Deuteranopia (green-blind)
#82752C
Tritanopia (blue-blind)
#896C64
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f7428;
/* rgb */ color: rgb(127, 116, 40);
/* oklch */ color: oklch(55.4% 0.096 101.0);
Tailwind
colors: {
  custom: {
    50: '#a79b66',
    500: '#7f7428',
    950: '#000000',
  },
}
SCSS
$custom: #7f7428;
$custom-light: #a79b66;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7428",
  "rgb": {
    "r": 127,
    "g": 116,
    "b": 40
  },
  "hsl": {
    "h": 52.414,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.55383,
    "c": 0.09644,
    "h": 101
  },
  "luminance": 0.17156
}

Semantic roles & 50–950 ramp

primary
#7F7428
secondary
#545FAF
accent
#5EDC4C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E06
muted
#7F7E7A

Preview Lab

Preview with #7F7428

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

Preview Lab → · Contrast checker → · Palette generator →

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