#7F7E1F#7F7E1F

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

Color values

HEX#7F7E1F
RGBrgb(127, 126, 31)
HSLhsl(59, 61%, 31%)
HSVhsv(59, 76%, 50%)
CMYKcmyk(0%, 0.8%, 75.6%, 50.2%)
CIE-LABlab(51.31, -11.40, 48.47)
CIE-LCHlch(51.31, 49.80, 103.24°)
OKLaboklab(57.63% -0.0365 0.1068)
OKLCHoklch(57.63% 0.113 108.9)
XYZxyz(16.4612, 19.5332, 4.1992)
Luminance0.1953 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7E1F #1F207F
analogous
#7F4E1F #7F7E1F #507F1F
triadic
#7F7E1F #1F7F7E #7E1F7F
tetradic
#7F7E1F #1F7F4E #1F207F #7F1F50
square
#7F7E1F #1F7F4E #1F207F #7F1F50
split-complementary
#7F7E1F #1F507F #4E1F7F
monochromatic
#1D1C07 #4E4D13 #7F7E1F #B0AF2B #D2D046

Accessibility & contrast

On white

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

On black

4.91
#7F7E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7E1F
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7E1F#FFFFFF#000000##000000
##7F7E1F1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790C
Deuteranopia (green-blind)
#8A7C26
Tritanopia (blue-blind)
#88766C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7f7e1f;
/* rgb */ color: rgb(127, 126, 31);
/* oklch */ color: oklch(57.6% 0.113 108.9);
Tailwind
colors: {
  custom: {
    50: '#a7a362',
    500: '#7f7e1f',
    950: '#000000',
  },
}
SCSS
$custom: #7f7e1f;
$custom-light: #a7a362;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7e1f",
  "rgb": {
    "r": 127,
    "g": 126,
    "b": 31
  },
  "hsl": {
    "h": 59.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.5763,
    "c": 0.11285,
    "h": 108.9
  },
  "luminance": 0.19533
}

Semantic roles & 50–950 ramp

primary
#7F7E1F
secondary
#4849B2
accent
#46E444
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7F7E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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