#7F7D18#7F7D18

#7F7D18 is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.4% C 0.116 H 108.4°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7F7D18
RGBrgb(127, 125, 24)
HSLhsl(59, 68%, 30%)
HSVhsv(59, 81%, 50%)
CMYKcmyk(0%, 1.6%, 81.1%, 50.2%)
CIE-LABlab(50.97, -11.16, 50.56)
CIE-LCHlch(50.97, 51.78, 102.45°)
OKLaboklab(57.35% -0.0365 0.1099)
OKLCHoklch(57.35% 0.116 108.4)
XYZxyz(16.2515, 19.2457, 3.7227)
Luminance0.1925 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7D18 #181A7F
analogous
#7F4A18 #7F7D18 #4E7F18
triadic
#7F7D18 #187F7D #7D187F
tetradic
#7F7D18 #187F4A #181A7F #7F184E
square
#7F7D18 #187F4A #181A7F #7F184E
split-complementary
#7F7D18 #184E7F #4A187F
monochromatic
#1A1905 #4C4A0E #7F7D18 #B2B022 #D9D638

Accessibility & contrast

On white

4.33
#7F7D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#7F7D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7D18
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7D18#FFFFFF#000000##000000
##7F7D181.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#8A7B21
Tritanopia (blue-blind)
#89746A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f7d18;
/* rgb */ color: rgb(127, 125, 24);
/* oklch */ color: oklch(57.4% 0.116 108.4);
Tailwind
colors: {
  custom: {
    50: '#a8a25f',
    500: '#7f7d18',
    950: '#000000',
  },
}
SCSS
$custom: #7f7d18;
$custom-light: #a8a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7d18",
  "rgb": {
    "r": 127,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 58.835,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57353,
    "c": 0.11574,
    "h": 108.4
  },
  "luminance": 0.19245
}

Semantic roles & 50–950 ramp

primary
#7F7D18
secondary
#3F42B3
accent
#40EB3D
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7F7D18

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

Preview Lab → · Contrast checker → · Palette generator →

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