#7F7D28#7F7D28

#7F7D28 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.5% C 0.106 H 108.0°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7F7D28
RGBrgb(127, 125, 40)
HSLhsl(59, 52%, 33%)
HSVhsv(59, 69%, 50%)
CMYKcmyk(0%, 1.6%, 68.5%, 50.2%)
CIE-LABlab(51.07, -10.36, 44.65)
CIE-LCHlch(51.07, 45.83, 103.07°)
OKLaboklab(57.47% -0.0326 0.1004)
OKLCHoklch(57.47% 0.106 108)
XYZxyz(16.4696, 19.3330, 4.8712)
Luminance0.1933 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7D28 #282A7F
analogous
#7F5228 #7F7D28 #557F28
triadic
#7F7D28 #287F7D #7D287F
tetradic
#7F7D28 #287F52 #282A7F #7F2855
square
#7F7D28 #287F52 #282A7F #7F2855
split-complementary
#7F7D28 #28557F #52287F
monochromatic
#22210B #504F19 #7F7D28 #AEAB37 #CAC857

Accessibility & contrast

On white

4.32
#7F7D28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#7F7D28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7D28
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7D28#FFFFFF#000000##000000
##7F7D281.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#87781C
Deuteranopia (green-blind)
#897B2E
Tritanopia (blue-blind)
#88756C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7f7d28;
/* rgb */ color: rgb(127, 125, 40);
/* oklch */ color: oklch(57.5% 0.106 108.0);
Tailwind
colors: {
  custom: {
    50: '#a7a267',
    500: '#7f7d28',
    950: '#000000',
  },
}
SCSS
$custom: #7f7d28;
$custom-light: #a7a267;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7d28",
  "rgb": {
    "r": 127,
    "g": 125,
    "b": 40
  },
  "hsl": {
    "h": 58.621,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57466,
    "c": 0.10554,
    "h": 108
  },
  "luminance": 0.19332
}

Semantic roles & 50–950 ramp

primary
#7F7D28
secondary
#5456AF
accent
#50DC4C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F06
muted
#7F7E7A

Preview Lab

Preview with #7F7D28

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

Preview Lab → · Contrast checker → · Palette generator →

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