#7E7C17#7E7C17

#7E7C17 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.115 H 108.4°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7E7C17
RGBrgb(126, 124, 23)
HSLhsl(59, 69%, 29%)
HSVhsv(59, 82%, 49%)
CMYKcmyk(0%, 1.6%, 81.7%, 50.6%)
CIE-LABlab(50.59, -11.12, 50.49)
CIE-LCHlch(50.59, 51.70, 102.42°)
OKLaboklab(57.02% -0.0364 0.1096)
OKLCHoklch(57.02% 0.115 108.4)
XYZxyz(15.9671, 18.9133, 3.6200)
Luminance0.1891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7C17 #17197E
analogous
#7E4917 #7E7C17 #4D7E17
triadic
#7E7C17 #177E7C #7C177E
tetradic
#7E7C17 #177E49 #17197E #7E174D
square
#7E7C17 #177E49 #17197E #7E174D
split-complementary
#7E7C17 #174D7E #49177E
monochromatic
#1A1905 #4A490E #7E7C17 #B2AF20 #DAD735

Accessibility & contrast

On white

4.39
#7E7C17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#7E7C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7C17
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7C17#FFFFFF#000000##000000
##7E7C171.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#887A20
Tritanopia (blue-blind)
#88736A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e7c17;
/* rgb */ color: rgb(126, 124, 23);
/* oklch */ color: oklch(57.0% 0.115 108.4);
Tailwind
colors: {
  custom: {
    50: '#a7a15f',
    500: '#7e7c17',
    950: '#000000',
  },
}
SCSS
$custom: #7e7c17;
$custom-light: #a7a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7c17",
  "rgb": {
    "r": 126,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 58.835,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.57021,
    "c": 0.11544,
    "h": 108.4
  },
  "luminance": 0.18913
}

Semantic roles & 50–950 ramp

primary
#7E7C17
secondary
#3E40B3
accent
#3FEC3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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