#7E7E18#7E7E18

#7E7E18 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.5% C 0.117 H 109.6°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7E7E18
RGBrgb(126, 126, 24)
HSLhsl(60, 68%, 29%)
HSVhsv(60, 81%, 49%)
CMYKcmyk(0%, 0%, 81%, 50.6%)
CIE-LABlab(51.18, -12.17, 50.71)
CIE-LCHlch(51.18, 52.15, 103.50°)
OKLaboklab(57.5% -0.0392 0.1102)
OKLCHoklch(57.5% 0.117 109.6)
XYZxyz(16.2305, 19.4238, 3.7582)
Luminance0.1942 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7E18 #18187E
analogous
#7E4B18 #7E7E18 #4B7E18
triadic
#7E7E18 #187E7E #7E187E
tetradic
#7E7E18 #187E4B #18187E #7E184B
square
#7E7E18 #187E4B #18187E #7E184B
split-complementary
#7E7E18 #184B7E #4B187E
monochromatic
#1A1A05 #4B4B0E #7E7E18 #B1B122 #D9D937

Accessibility & contrast

On white

4.30
#7E7E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#7E7E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7E18
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7E18#FFFFFF#000000##000000
##7E7E181.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#8A7B21
Tritanopia (blue-blind)
#88756B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e7e18;
/* rgb */ color: rgb(126, 126, 24);
/* oklch */ color: oklch(57.5% 0.117 109.6);
Tailwind
colors: {
  custom: {
    50: '#a7a35f',
    500: '#7e7e18',
    950: '#000000',
  },
}
SCSS
$custom: #7e7e18;
$custom-light: #a7a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7e18",
  "rgb": {
    "r": 126,
    "g": 126,
    "b": 24
  },
  "hsl": {
    "h": 60,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57496,
    "c": 0.11698,
    "h": 109.6
  },
  "luminance": 0.19423
}

Semantic roles & 50–950 ramp

primary
#7E7E18
secondary
#3F3FB2
accent
#3DEB3D
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7E7E18

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

Preview Lab → · Contrast checker → · Palette generator →

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