#7E7A18#7E7A18

#7E7A18 is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.6% C 0.113 H 107.0°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7E7A18
RGBrgb(126, 122, 24)
HSLhsl(58, 68%, 29%)
HSVhsv(58, 81%, 49%)
CMYKcmyk(0%, 3.2%, 81%, 50.6%)
CIE-LABlab(50.00, -9.99, 49.66)
CIE-LCHlch(50.00, 50.65, 101.37°)
OKLaboklab(56.56% -0.0331 0.108)
OKLCHoklch(56.56% 0.113 107)
XYZxyz(15.7292, 18.4212, 3.5911)
Luminance0.1842 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7A18 #181C7E
analogous
#7E4718 #7E7A18 #4F7E18
triadic
#7E7A18 #187E7A #7A187E
tetradic
#7E7A18 #187E47 #181C7E #7E184F
square
#7E7A18 #187E47 #181C7E #7E184F
split-complementary
#7E7A18 #184F7E #47187E
monochromatic
#1A1905 #4B480E #7E7A18 #B1AC22 #D9D337

Accessibility & contrast

On white

4.48
#7E7A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#7E7A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7A18
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7A18#FFFFFF#000000##000000
##7E7A181.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#877920
Tritanopia (blue-blind)
#887168
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e7a18;
/* rgb */ color: rgb(126, 122, 24);
/* oklch */ color: oklch(56.6% 0.113 107.0);
Tailwind
colors: {
  custom: {
    50: '#a7a05f',
    500: '#7e7a18',
    950: '#000000',
  },
}
SCSS
$custom: #7e7a18;
$custom-light: #a7a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7a18",
  "rgb": {
    "r": 126,
    "g": 122,
    "b": 24
  },
  "hsl": {
    "h": 57.647,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.56557,
    "c": 0.11293,
    "h": 107
  },
  "luminance": 0.18421
}

Semantic roles & 50–950 ramp

primary
#7E7A18
secondary
#3F44B2
accent
#44EB3D
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7E7A18

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

Preview Lab → · Contrast checker → · Palette generator →

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