#7D7D21#7D7D21

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

Color values

HEX#7D7D21
RGBrgb(125, 125, 33)
HSLhsl(60, 58%, 31%)
HSVhsv(60, 74%, 49%)
CMYKcmyk(0%, 0%, 73.6%, 51%)
CIE-LABlab(50.85, -11.68, 47.22)
CIE-LCHlch(50.85, 48.64, 103.89°)
OKLaboklab(57.23% -0.0369 0.1046)
OKLCHoklch(57.23% 0.111 109.4)
XYZxyz(16.0661, 19.1375, 4.2861)
Luminance0.1914 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7D21 #21217D
analogous
#7D4F21 #7D7D21 #4F7D21
triadic
#7D7D21 #217D7D #7D217D
tetradic
#7D7D21 #217D4F #21217D #7D214F
square
#7D7D21 #217D4F #21217D #7D214F
split-complementary
#7D7D21 #214F7D #4F217D
monochromatic
#1C1C07 #4D4D14 #7D7D21 #ADAD2E #CFCF49

Accessibility & contrast

On white

4.35
#7D7D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#7D7D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7D21
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7D21#FFFFFF#000000##000000
##7D7D211.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#877810
Deuteranopia (green-blind)
#897A28
Tritanopia (blue-blind)
#86756B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7d7d21;
/* rgb */ color: rgb(125, 125, 33);
/* oklch */ color: oklch(57.2% 0.111 109.4);
Tailwind
colors: {
  custom: {
    50: '#a6a263',
    500: '#7d7d21',
    950: '#000000',
  },
}
SCSS
$custom: #7d7d21;
$custom-light: #a6a263;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7d21",
  "rgb": {
    "r": 125,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 60,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.57226,
    "c": 0.11093,
    "h": 109.4
  },
  "luminance": 0.19137
}

Semantic roles & 50–950 ramp

primary
#7D7D21
secondary
#4A4AB0
accent
#46E146
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F06
muted
#7F7E7A

Preview Lab

Preview with #7D7D21

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

Preview Lab → · Contrast checker → · Palette generator →

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