#7F7C1F#7F7C1F

#7F7C1F is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.2% C 0.111 H 107.6°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7F7C1F
RGBrgb(127, 124, 31)
HSLhsl(58, 61%, 31%)
HSVhsv(58, 76%, 50%)
CMYKcmyk(0%, 2.4%, 75.6%, 50.2%)
CIE-LABlab(50.72, -10.31, 47.92)
CIE-LCHlch(50.72, 49.01, 102.14°)
OKLaboklab(57.16% -0.0334 0.1056)
OKLCHoklch(57.16% 0.111 107.6)
XYZxyz(16.2080, 19.0268, 4.1148)
Luminance0.1903 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7C1F #1F227F
analogous
#7F4C1F #7F7C1F #527F1F
triadic
#7F7C1F #1F7F7C #7C1F7F
tetradic
#7F7C1F #1F7F4C #1F227F #7F1F52
square
#7F7C1F #1F7F4C #1F227F #7F1F52
split-complementary
#7F7C1F #1F527F #4C1F7F
monochromatic
#1D1C07 #4E4C13 #7F7C1F #B0AC2B #D2CE46

Accessibility & contrast

On white

4.37
#7F7C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#7F7C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7C1F
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7C1F#FFFFFF#000000##000000
##7F7C1F1.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#87770D
Deuteranopia (green-blind)
#897A26
Tritanopia (blue-blind)
#89736A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f7c1f;
/* rgb */ color: rgb(127, 124, 31);
/* oklch */ color: oklch(57.2% 0.111 107.6);
Tailwind
colors: {
  custom: {
    50: '#a7a162',
    500: '#7f7c1f',
    950: '#000000',
  },
}
SCSS
$custom: #7f7c1f;
$custom-light: #a7a162;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7c1f",
  "rgb": {
    "r": 127,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 58.125,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.57162,
    "c": 0.11077,
    "h": 107.6
  },
  "luminance": 0.19026
}

Semantic roles & 50–950 ramp

primary
#7F7C1F
secondary
#484BB2
accent
#49E444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F7C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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