#7E7F17#7E7F17

#7E7F17 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.7% C 0.119 H 110.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7E7F17
RGBrgb(126, 127, 23)
HSLhsl(61, 69%, 29%)
HSVhsv(61, 82%, 50%)
CMYKcmyk(0.8%, 0%, 81.9%, 50.2%)
CIE-LABlab(51.47, -12.75, 51.27)
CIE-LCHlch(51.47, 52.83, 103.96°)
OKLaboklab(57.73% -0.0409 0.1112)
OKLCHoklch(57.73% 0.119 110.2)
XYZxyz(16.3488, 19.6767, 3.7472)
Luminance0.1968 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7F17 #18177F
analogous
#7F4C17 #7E7F17 #4A7F17
triadic
#7E7F17 #177E7F #7F177E
tetradic
#7E7F17 #177F4C #18177F #7F174A
square
#7E7F17 #177F4C #18177F #7F174A
split-complementary
#7E7F17 #174A7F #4C177F
monochromatic
#1A1A05 #4B4B0E #7E7F17 #B1B320 #D9DB36

Accessibility & contrast

On white

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

On black

4.94
#7E7F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7F17
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7F17#FFFFFF#000000##000000
##7E7F171.004.264.944.94
#FFFFFF4.261.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8B7C21
Tritanopia (blue-blind)
#87766C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e7f17;
/* rgb */ color: rgb(126, 127, 23);
/* oklch */ color: oklch(57.7% 0.119 110.2);
Tailwind
colors: {
  custom: {
    50: '#a7a35f',
    500: '#7e7f17',
    950: '#000000',
  },
}
SCSS
$custom: #7e7f17;
$custom-light: #a7a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7f17",
  "rgb": {
    "r": 126,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 60.577,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57727,
    "c": 0.11851,
    "h": 110.2
  },
  "luminance": 0.19676
}

Semantic roles & 50–950 ramp

primary
#7E7F17
secondary
#3F3EB4
accent
#3CEC3D
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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