#7D7E17#7D7E17

#7D7E17 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.4% C 0.118 H 110.2°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7D7E17
RGBrgb(125, 126, 23)
HSLhsl(61, 69%, 29%)
HSVhsv(61, 82%, 49%)
CMYKcmyk(0.8%, 0%, 81.7%, 50.6%)
CIE-LABlab(51.09, -12.67, 50.90)
CIE-LCHlch(51.09, 52.45, 103.98°)
OKLaboklab(57.4% -0.0406 0.1105)
OKLCHoklch(57.4% 0.118 110.2)
XYZxyz(16.0736, 19.3440, 3.6975)
Luminance0.1934 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7E17 #18177E
analogous
#7E4C17 #7D7E17 #497E17
triadic
#7D7E17 #177D7E #7E177D
tetradic
#7D7E17 #177E4C #18177E #7E1749
square
#7D7E17 #177E4C #18177E #7E1749
split-complementary
#7D7E17 #17497E #4C177E
monochromatic
#1A1A05 #4A4A0E #7D7E17 #B0B220 #D9DA35

Accessibility & contrast

On white

4.31
#7D7E17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#7D7E17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7E17
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7E17#FFFFFF#000000##000000
##7D7E171.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#8A7B21
Tritanopia (blue-blind)
#86756B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7d7e17;
/* rgb */ color: rgb(125, 126, 23);
/* oklch */ color: oklch(57.4% 0.118 110.2);
Tailwind
colors: {
  custom: {
    50: '#a6a35f',
    500: '#7d7e17',
    950: '#000000',
  },
}
SCSS
$custom: #7d7e17;
$custom-light: #a6a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7e17",
  "rgb": {
    "r": 125,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 60.583,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.574,
    "c": 0.11771,
    "h": 110.2
  },
  "luminance": 0.19344
}

Semantic roles & 50–950 ramp

primary
#7D7E17
secondary
#3F3EB3
accent
#3CEC3E
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7D7E17

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

Preview Lab → · Contrast checker → · Palette generator →

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