#7F7818#7F7818

#7F7818 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.2% C 0.111 H 105.0°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7F7818
RGBrgb(127, 120, 24)
HSLhsl(56, 68%, 30%)
HSVhsv(56, 81%, 50%)
CMYKcmyk(0%, 5.5%, 81.1%, 50.2%)
CIE-LABlab(49.51, -8.41, 49.25)
CIE-LCHlch(49.51, 49.97, 99.69°)
OKLaboklab(56.19% -0.0288 0.1071)
OKLCHoklch(56.19% 0.111 105)
XYZxyz(15.6344, 18.0115, 3.5170)
Luminance0.1801 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7818 #181F7F
analogous
#7F4418 #7F7818 #537F18
triadic
#7F7818 #187F78 #78187F
tetradic
#7F7818 #187F44 #181F7F #7F1853
square
#7F7818 #187F44 #181F7F #7F1853
split-complementary
#7F7818 #18537F #44187F
monochromatic
#1A1805 #4C470E #7F7818 #B2A922 #D9CE38

Accessibility & contrast

On white

4.56
#7F7818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#7F7818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7818
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7818#FFFFFF#000000##000000
##7F78181.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#867820
Tritanopia (blue-blind)
#896F66
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f7818;
/* rgb */ color: rgb(127, 120, 24);
/* oklch */ color: oklch(56.2% 0.111 105.0);
Tailwind
colors: {
  custom: {
    50: '#a89e5e',
    500: '#7f7818',
    950: '#000000',
  },
}
SCSS
$custom: #7f7818;
$custom-light: #a89e5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7818",
  "rgb": {
    "r": 127,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 55.922,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.56187,
    "c": 0.11085,
    "h": 105
  },
  "luminance": 0.18011
}

Semantic roles & 50–950 ramp

primary
#7F7818
secondary
#3F47B3
accent
#49EB3D
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7818

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

Preview Lab → · Contrast checker → · Palette generator →

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