#7F7418#7F7418

#7F7418 is a mid, moderate yellow. Relative luminance 0.171; OKLCH L 55.3% C 0.107 H 102.1°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7F7418
RGBrgb(127, 116, 24)
HSLhsl(54, 68%, 30%)
HSVhsv(54, 81%, 50%)
CMYKcmyk(0%, 8.7%, 81.1%, 50.2%)
CIE-LABlab(48.35, -6.18, 48.21)
CIE-LCHlch(48.35, 48.61, 97.31°)
OKLaboklab(55.26% -0.0225 0.1048)
OKLCHoklch(55.26% 0.107 102.1)
XYZxyz(15.1634, 17.0694, 3.3600)
Luminance0.1707 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7418 #18237F
analogous
#7F4018 #7F7418 #577F18
triadic
#7F7418 #187F74 #74187F
tetradic
#7F7418 #187F40 #18237F #7F1857
square
#7F7418 #187F40 #18237F #7F1857
split-complementary
#7F7418 #18577F #40187F
monochromatic
#1A1805 #4C450E #7F7418 #B2A322 #D9C838

Accessibility & contrast

On white

4.76
#7F7418 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#7F7418 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7418
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7418#FFFFFF#000000##FFFFFF
##7F74181.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807001
Deuteranopia (green-blind)
#83751F
Tritanopia (blue-blind)
#896B63
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f7418;
/* rgb */ color: rgb(127, 116, 24);
/* oklch */ color: oklch(55.3% 0.107 102.1);
Tailwind
colors: {
  custom: {
    50: '#a89b5e',
    500: '#7f7418',
    950: '#000000',
  },
}
SCSS
$custom: #7f7418;
$custom-light: #a89b5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7418",
  "rgb": {
    "r": 127,
    "g": 116,
    "b": 24
  },
  "hsl": {
    "h": 53.592,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.55262,
    "c": 0.10721,
    "h": 102.1
  },
  "luminance": 0.17069
}

Semantic roles & 50–950 ramp

primary
#7F7418
secondary
#3F4CB3
accent
#4FEB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7418

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

Preview Lab → · Contrast checker → · Palette generator →

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