#7E7218#7E7218

#7E7218 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#7E7218
RGBrgb(126, 114, 24)
HSLhsl(53, 68%, 29%)
HSVhsv(53, 81%, 49%)
CMYKcmyk(0%, 9.5%, 81%, 50.6%)
CIE-LABlab(47.67, -5.53, 47.57)
CIE-LCHlch(47.67, 47.89, 96.63°)
OKLaboklab(54.7% -0.0206 0.1035)
OKLCHoklch(54.7% 0.106 101.3)
XYZxyz(14.7871, 16.5369, 3.2770)
Luminance0.1654 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7218 #18247E
analogous
#7E3F18 #7E7218 #577E18
triadic
#7E7218 #187E72 #72187E
tetradic
#7E7218 #187E3F #18247E #7E1857
square
#7E7218 #187E3F #18247E #7E1857
split-complementary
#7E7218 #18577E #3F187E
monochromatic
#1A1705 #4B430E #7E7218 #B1A122 #D9C637

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E7218#FFFFFF#000000##FFFFFF
##7E72181.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)
#7E6E02
Deuteranopia (green-blind)
#81731F
Tritanopia (blue-blind)
#886961
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e7218;
/* rgb */ color: rgb(126, 114, 24);
/* oklch */ color: oklch(54.7% 0.106 101.3);
Tailwind
colors: {
  custom: {
    50: '#a79a5e',
    500: '#7e7218',
    950: '#000000',
  },
}
SCSS
$custom: #7e7218;
$custom-light: #a79a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7218",
  "rgb": {
    "r": 126,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 52.941,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54701,
    "c": 0.10551,
    "h": 101.3
  },
  "luminance": 0.16536
}

Semantic roles & 50–950 ramp

primary
#7E7218
secondary
#3F4DB2
accent
#51EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7218

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

Preview Lab → · Contrast checker → · Palette generator →

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