#7E7018#7E7018

#7E7018 is a mid, moderate yellow. Relative luminance 0.161; OKLCH L 54.2% C 0.104 H 99.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7E7018
RGBrgb(126, 112, 24)
HSLhsl(52, 68%, 29%)
HSVhsv(52, 81%, 49%)
CMYKcmyk(0%, 11.1%, 81%, 50.6%)
CIE-LABlab(47.09, -4.40, 47.04)
CIE-LCHlch(47.09, 47.25, 95.34°)
OKLaboklab(54.24% -0.0174 0.1024)
OKLCHoklch(54.24% 0.104 99.7)
XYZxyz(14.5640, 16.0906, 3.2027)
Luminance0.1609 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7018 #18267E
analogous
#7E3D18 #7E7018 #597E18
triadic
#7E7018 #187E70 #70187E
tetradic
#7E7018 #187E3D #18267E #7E1859
square
#7E7018 #187E3D #18267E #7E1859
split-complementary
#7E7018 #18597E #3D187E
monochromatic
#1A1705 #4B420E #7E7018 #B19E22 #D9C337

Accessibility & contrast

On white

4.98
#7E7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7E7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E7018
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7018#FFFFFF#000000##FFFFFF
##7E70181.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D03
Deuteranopia (green-blind)
#7F721F
Tritanopia (blue-blind)
#886760
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e7018;
/* rgb */ color: rgb(126, 112, 24);
/* oklch */ color: oklch(54.2% 0.104 99.7);
Tailwind
colors: {
  custom: {
    50: '#a7985d',
    500: '#7e7018',
    950: '#000000',
  },
}
SCSS
$custom: #7e7018;
$custom-light: #a7985d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7018",
  "rgb": {
    "r": 126,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 51.765,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54243,
    "c": 0.10383,
    "h": 99.7
  },
  "luminance": 0.1609
}

Semantic roles & 50–950 ramp

primary
#7E7018
secondary
#3F4FB2
accent
#55EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7E7018

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

Preview Lab → · Contrast checker → · Palette generator →

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