#7F7A1E#7F7A1E

#7F7A1E 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#7F7A1E
RGBrgb(127, 122, 30)
HSLhsl(57, 62%, 31%)
HSVhsv(57, 76%, 50%)
CMYKcmyk(0%, 3.9%, 76.4%, 50.2%)
CIE-LABlab(50.13, -9.26, 47.73)
CIE-LCHlch(50.13, 48.62, 100.98°)
OKLaboklab(56.69% -0.0306 0.105)
OKLCHoklch(56.69% 0.109 106.2)
XYZxyz(15.9469, 18.5254, 3.9638)
Luminance0.1852 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7A1E #1E237F
analogous
#7F491E #7F7A1E #537F1E
triadic
#7F7A1E #1E7F7A #7A1E7F
tetradic
#7F7A1E #1E7F49 #1E237F #7F1E53
square
#7F7A1E #1E7F49 #1E237F #7F1E53
split-complementary
#7F7A1E #1E537F #491E7F
monochromatic
#1C1B07 #4D4A12 #7F7A1E #B1AA2A #D3CC44

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F7A1E#FFFFFF#000000##000000
##7F7A1E1.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)
#85750B
Deuteranopia (green-blind)
#877925
Tritanopia (blue-blind)
#897168
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f7a1e;
/* rgb */ color: rgb(127, 122, 30);
/* oklch */ color: oklch(56.7% 0.109 106.2);
Tailwind
colors: {
  custom: {
    50: '#a7a061',
    500: '#7f7a1e',
    950: '#000000',
  },
}
SCSS
$custom: #7f7a1e;
$custom-light: #a7a061;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7a1e",
  "rgb": {
    "r": 127,
    "g": 122,
    "b": 30
  },
  "hsl": {
    "h": 56.907,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56689,
    "c": 0.10937,
    "h": 106.2
  },
  "luminance": 0.18525
}

Semantic roles & 50–950 ramp

primary
#7F7A1E
secondary
#474CB2
accent
#4BE543
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7F7A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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