#7D7F1C#7D7F1C

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

Color values

HEX#7D7F1C
RGBrgb(125, 127, 28)
HSLhsl(61, 64%, 30%)
HSVhsv(61, 78%, 50%)
CMYKcmyk(1.6%, 0%, 78%, 50.2%)
CIE-LABlab(51.41, -13.01, 49.57)
CIE-LCHlch(51.41, 51.25, 104.70°)
OKLaboklab(57.67% -0.0411 0.1086)
OKLCHoklch(57.67% 0.116 110.7)
XYZxyz(16.2570, 19.6230, 4.0296)
Luminance0.1962 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7F1C #1E1C7F
analogous
#7F4F1C #7D7F1C #4B7F1C
triadic
#7D7F1C #1C7D7F #7F1C7D
tetradic
#7D7F1C #1C7F4F #1E1C7F #7F1C4B
square
#7D7F1C #1C7F4F #1E1C7F #7F1C4B
split-complementary
#7D7F1C #1C4B7F #4F1C7F
monochromatic
#1A1B06 #4C4D11 #7D7F1C #AEB127 #D2D540

Accessibility & contrast

On white

4.26
#7D7F1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D7F1C#FFFFFF#000000##000000
##7D7F1C1.004.264.924.92
#FFFFFF4.261.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d7f1c;
/* rgb */ color: rgb(125, 127, 28);
/* oklch */ color: oklch(57.7% 0.116 110.7);
Tailwind
colors: {
  custom: {
    50: '#a6a361',
    500: '#7d7f1c',
    950: '#000000',
  },
}
SCSS
$custom: #7d7f1c;
$custom-light: #a6a361;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7f1c",
  "rgb": {
    "r": 125,
    "g": 127,
    "b": 28
  },
  "hsl": {
    "h": 61.212,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.57665,
    "c": 0.11613,
    "h": 110.7
  },
  "luminance": 0.19623
}

Semantic roles & 50–950 ramp

primary
#7D7F1C
secondary
#4644B3
accent
#41E744
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7D7F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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