#7E7918#7E7918

#7E7918 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.3% C 0.112 H 106.4°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7E7918
RGBrgb(126, 121, 24)
HSLhsl(57, 68%, 29%)
HSVhsv(57, 81%, 49%)
CMYKcmyk(0%, 4%, 81%, 50.6%)
CIE-LABlab(49.71, -9.43, 49.40)
CIE-LCHlch(49.71, 50.29, 100.81°)
OKLaboklab(56.32% -0.0316 0.1074)
OKLCHoklch(56.32% 0.112 106.4)
XYZxyz(15.6071, 18.1769, 3.5504)
Luminance0.1818 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7918 #181D7E
analogous
#7E4618 #7E7918 #507E18
triadic
#7E7918 #187E79 #79187E
tetradic
#7E7918 #187E46 #181D7E #7E1850
square
#7E7918 #187E46 #181D7E #7E1850
split-complementary
#7E7918 #18507E #46187E
monochromatic
#1A1905 #4B480E #7E7918 #B1AA22 #D9D137

Accessibility & contrast

On white

4.53
#7E7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#7E7918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7918
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7918#FFFFFF#000000##000000
##7E79181.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#867820
Tritanopia (blue-blind)
#887067
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e7918;
/* rgb */ color: rgb(126, 121, 24);
/* oklch */ color: oklch(56.3% 0.112 106.4);
Tailwind
colors: {
  custom: {
    50: '#a79f5f',
    500: '#7e7918',
    950: '#000000',
  },
}
SCSS
$custom: #7e7918;
$custom-light: #a79f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7918",
  "rgb": {
    "r": 126,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 57.059,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.56324,
    "c": 0.11195,
    "h": 106.4
  },
  "luminance": 0.18176
}

Semantic roles & 50–950 ramp

primary
#7E7918
secondary
#3F45B2
accent
#45EB3D
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7918

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

Preview Lab → · Contrast checker → · Palette generator →

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