#7F7E1D#7F7E1D

#7F7E1D is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.114 H 108.9°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7F7E1D
RGBrgb(127, 126, 29)
HSLhsl(59, 63%, 31%)
HSVhsv(59, 77%, 50%)
CMYKcmyk(0%, 0.8%, 77.2%, 50.2%)
CIE-LABlab(51.29, -11.50, 49.18)
CIE-LCHlch(51.29, 50.51, 103.16°)
OKLaboklab(57.62% -0.0369 0.1079)
OKLCHoklch(57.62% 0.114 108.9)
XYZxyz(16.4356, 19.5230, 4.0647)
Luminance0.1952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7E1D #1D1E7F
analogous
#7F4D1D #7F7E1D #4F7F1D
triadic
#7F7E1D #1D7F7E #7E1D7F
tetradic
#7F7E1D #1D7F4D #1D1E7F #7F1D4F
square
#7F7E1D #1D7F4D #1D1E7F #7F1D4F
split-complementary
#7F7E1D #1D4F7F #4D1D7F
monochromatic
#1B1B06 #4D4D12 #7F7E1D #B1AF28 #D4D242

Accessibility & contrast

On white

4.28
#7F7E1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#7F7E1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7E1D
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7E1D#FFFFFF#000000##000000
##7F7E1D1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#897907
Deuteranopia (green-blind)
#8A7C25
Tritanopia (blue-blind)
#89756C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7f7e1d;
/* rgb */ color: rgb(127, 126, 29);
/* oklch */ color: oklch(57.6% 0.114 108.9);
Tailwind
colors: {
  custom: {
    50: '#a7a361',
    500: '#7f7e1d',
    950: '#000000',
  },
}
SCSS
$custom: #7f7e1d;
$custom-light: #a7a361;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7e1d",
  "rgb": {
    "r": 127,
    "g": 126,
    "b": 29
  },
  "hsl": {
    "h": 59.388,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.57617,
    "c": 0.11404,
    "h": 108.9
  },
  "luminance": 0.19522
}

Semantic roles & 50–950 ramp

primary
#7F7E1D
secondary
#4547B2
accent
#44E642
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A

Preview Lab

Preview with #7F7E1D

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

Preview Lab → · Contrast checker → · Palette generator →

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