#7E7F18#7E7F18

#7E7F18 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.7% C 0.118 H 110.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7E7F18
RGBrgb(126, 127, 24)
HSLhsl(61, 68%, 30%)
HSVhsv(61, 81%, 50%)
CMYKcmyk(0.8%, 0%, 81.1%, 50.2%)
CIE-LABlab(51.47, -12.71, 50.97)
CIE-LCHlch(51.47, 52.53, 104.00°)
OKLaboklab(57.73% -0.0407 0.1108)
OKLCHoklch(57.73% 0.118 110.2)
XYZxyz(16.3590, 19.6808, 3.8010)
Luminance0.1968 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E7F18 #19187F
analogous
#7F4D18 #7E7F18 #4A7F18
triadic
#7E7F18 #187E7F #7F187E
tetradic
#7E7F18 #187F4D #19187F #7F184A
square
#7E7F18 #187F4D #19187F #7F184A
split-complementary
#7E7F18 #184A7F #4D187F
monochromatic
#1A1A05 #4B4C0E #7E7F18 #B1B222 #D8D938

Accessibility & contrast

On white

4.25
#7E7F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#7E7F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E7F18
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E7F18#FFFFFF#000000##000000
##7E7F181.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8B7C21
Tritanopia (blue-blind)
#87766C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7e7f18;
/* rgb */ color: rgb(126, 127, 24);
/* oklch */ color: oklch(57.7% 0.118 110.2);
Tailwind
colors: {
  custom: {
    50: '#a7a35f',
    500: '#7e7f18',
    950: '#000000',
  },
}
SCSS
$custom: #7e7f18;
$custom-light: #a7a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e7f18",
  "rgb": {
    "r": 126,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 60.583,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57732,
    "c": 0.11802,
    "h": 110.2
  },
  "luminance": 0.1968
}

Semantic roles & 50–950 ramp

primary
#7E7F18
secondary
#413FB3
accent
#3DEB3E
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7E7F18

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

Preview Lab → · Contrast checker → · Palette generator →

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