#7E7217#7E7217

#7E7217 is a mid, moderate yellow. Relative luminance 0.165; OKLCH L 54.7% C 0.106 H 101.3°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7E7217
RGBrgb(126, 114, 23)
HSLhsl(53, 69%, 29%)
HSVhsv(53, 82%, 49%)
CMYKcmyk(0%, 9.5%, 81.7%, 50.6%)
CIE-LABlab(47.67, -5.57, 47.90)
CIE-LCHlch(47.67, 48.22, 96.63°)
OKLaboklab(54.7% -0.0208 0.104)
OKLCHoklch(54.7% 0.106 101.3)
XYZxyz(14.7769, 16.5328, 3.2232)
Luminance0.1653 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7217 #17237E
analogous
#7E3F17 #7E7217 #577E17
triadic
#7E7217 #177E72 #72177E
tetradic
#7E7217 #177E3F #17237E #7E1757
square
#7E7217 #177E3F #17237E #7E1757
split-complementary
#7E7217 #17577E #3F177E
monochromatic
#1A1705 #4A430E #7E7217 #B2A120 #DAC735

Accessibility & contrast

On white

4.88
#7E7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7E7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7217
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7217#FFFFFF#000000##FFFFFF
##7E72171.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#81731E
Tritanopia (blue-blind)
#886961
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e7217;
/* rgb */ color: rgb(126, 114, 23);
/* oklch */ color: oklch(54.7% 0.106 101.3);
Tailwind
colors: {
  custom: {
    50: '#a79a5d',
    500: '#7e7217',
    950: '#000000',
  },
}
SCSS
$custom: #7e7217;
$custom-light: #a79a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7217",
  "rgb": {
    "r": 126,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 53.01,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54695,
    "c": 0.10605,
    "h": 101.3
  },
  "luminance": 0.16532
}

Semantic roles & 50–950 ramp

primary
#7E7217
secondary
#3E4CB3
accent
#50EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7217

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

Preview Lab → · Contrast checker → · Palette generator →

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