#7F8018#7F8018

#7F8018 is a mid, moderate yellow. Relative luminance 0.200; OKLCH L 58.1% C 0.119 H 110.2°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7F8018
RGBrgb(127, 128, 24)
HSLhsl(61, 68%, 30%)
HSVhsv(61, 81%, 50%)
CMYKcmyk(0.8%, 0%, 81.3%, 49.8%)
CIE-LABlab(51.86, -12.79, 51.34)
CIE-LCHlch(51.86, 52.91, 103.99°)
OKLaboklab(58.06% -0.041 0.1115)
OKLCHoklch(58.06% 0.119 110.2)
XYZxyz(16.6371, 20.0168, 3.8512)
Luminance0.2002 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8018 #191880
analogous
#804D18 #7F8018 #4B8018
triadic
#7F8018 #187F80 #80187F
tetradic
#7F8018 #18804D #191880 #80184B
square
#7F8018 #18804D #191880 #80184B
split-complementary
#7F8018 #184B80 #4D1880
monochromatic
#1A1A05 #4C4C0E #7F8018 #B2B422 #D8DA39

Accessibility & contrast

On white

4.20
#7F8018 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#7F8018 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8018
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8018#FFFFFF#000000##000000
##7F80181.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8C7D22
Tritanopia (blue-blind)
#89776D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7f8018;
/* rgb */ color: rgb(127, 128, 24);
/* oklch */ color: oklch(58.1% 0.119 110.2);
Tailwind
colors: {
  custom: {
    50: '#a8a460',
    500: '#7f8018',
    950: '#000000',
  },
}
SCSS
$custom: #7f8018;
$custom-light: #a8a460;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8018",
  "rgb": {
    "r": 127,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 60.577,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.58059,
    "c": 0.11882,
    "h": 110.2
  },
  "luminance": 0.20016
}

Semantic roles & 50–950 ramp

primary
#7F8018
secondary
#4140B4
accent
#3DEB3E
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8018

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

Preview Lab → · Contrast checker → · Palette generator →

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