#7D7F1B#7D7F1B

#7D7F1B is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.7% C 0.117 H 110.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7D7F1B
RGBrgb(125, 127, 27)
HSLhsl(61, 65%, 30%)
HSVhsv(61, 79%, 50%)
CMYKcmyk(1.6%, 0%, 78.7%, 50.2%)
CIE-LABlab(51.40, -13.05, 49.91)
CIE-LCHlch(51.40, 51.58, 104.65°)
OKLaboklab(57.66% -0.0413 0.1091)
OKLCHoklch(57.66% 0.117 110.7)
XYZxyz(16.2452, 19.6183, 3.9677)
Luminance0.1962 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7F1B #1D1B7F
analogous
#7F4F1B #7D7F1B #4B7F1B
triadic
#7D7F1B #1B7D7F #7F1B7D
tetradic
#7D7F1B #1B7F4F #1D1B7F #7F1B4B
square
#7D7F1B #1B7F4F #1D1B7F #7F1B4B
split-complementary
#7D7F1B #1B4B7F #4F1B7F
monochromatic
#1A1A06 #4B4D10 #7D7F1B #AFB126 #D3D63E

Accessibility & contrast

On white

4.27
#7D7F1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#7D7F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7F1B
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7F1B#FFFFFF#000000##000000
##7D7F1B1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7902
Deuteranopia (green-blind)
#8A7C24
Tritanopia (blue-blind)
#86776C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7d7f1b;
/* rgb */ color: rgb(125, 127, 27);
/* oklch */ color: oklch(57.7% 0.117 110.7);
Tailwind
colors: {
  custom: {
    50: '#a6a361',
    500: '#7d7f1b',
    950: '#000000',
  },
}
SCSS
$custom: #7d7f1b;
$custom-light: #a6a361;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7f1b",
  "rgb": {
    "r": 125,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 61.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.57659,
    "c": 0.11669,
    "h": 110.7
  },
  "luminance": 0.19618
}

Semantic roles & 50–950 ramp

primary
#7D7F1B
secondary
#4543B3
accent
#40E843
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7D7F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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