#7F7A1F#7F7A1F

#7F7A1F is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.7% C 0.109 H 106.2°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7F7A1F
RGBrgb(127, 122, 31)
HSLhsl(57, 61%, 31%)
HSVhsv(57, 76%, 50%)
CMYKcmyk(0%, 3.9%, 75.6%, 50.2%)
CIE-LABlab(50.13, -9.21, 47.36)
CIE-LCHlch(50.13, 48.25, 101.01°)
OKLaboklab(56.7% -0.0303 0.1044)
OKLCHoklch(56.7% 0.109 106.2)
XYZxyz(15.9599, 18.5306, 4.0321)
Luminance0.1853 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7A1F #1F247F
analogous
#7F4A1F #7F7A1F #547F1F
triadic
#7F7A1F #1F7F7A #7A1F7F
tetradic
#7F7A1F #1F7F4A #1F247F #7F1F54
square
#7F7A1F #1F7F4A #1F247F #7F1F54
split-complementary
#7F7A1F #1F547F #4A1F7F
monochromatic
#1D1B07 #4E4B13 #7F7A1F #B0A92B #D2CB46

Accessibility & contrast

On white

4.46
#7F7A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#7F7A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7A1F
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7A1F#FFFFFF#000000##000000
##7F7A1F1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#85750E
Deuteranopia (green-blind)
#877926
Tritanopia (blue-blind)
#897168
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f7a1f;
/* rgb */ color: rgb(127, 122, 31);
/* oklch */ color: oklch(56.7% 0.109 106.2);
Tailwind
colors: {
  custom: {
    50: '#a7a062',
    500: '#7f7a1f',
    950: '#000000',
  },
}
SCSS
$custom: #7f7a1f;
$custom-light: #a7a062;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7a1f",
  "rgb": {
    "r": 127,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 56.875,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56696,
    "c": 0.10875,
    "h": 106.2
  },
  "luminance": 0.1853
}

Semantic roles & 50–950 ramp

primary
#7F7A1F
secondary
#484DB2
accent
#4CE444
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F7A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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