#7F8015#7F8015

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

Color values

HEX#7F8015
RGBrgb(127, 128, 21)
HSLhsl(61, 72%, 29%)
HSVhsv(61, 84%, 50%)
CMYKcmyk(0.8%, 0%, 83.6%, 49.8%)
CIE-LABlab(51.84, -12.90, 52.21)
CIE-LCHlch(51.84, 53.78, 103.88°)
OKLaboklab(58.04% -0.0415 0.1128)
OKLCHoklch(58.04% 0.12 110.2)
XYZxyz(16.6076, 20.0050, 3.6958)
Luminance0.2001 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8015 #161580
analogous
#804C15 #7F8015 #4A8015
triadic
#7F8015 #157F80 #80157F
tetradic
#7F8015 #15804C #161580 #80154A
square
#7F8015 #15804C #161580 #80154A
split-complementary
#7F8015 #154A80 #4C1580
monochromatic
#1A1A04 #4B4B0C #7F8015 #B3B51E #DCDD32

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8015#FFFFFF#000000##000000
##7F80151.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)
#8C7D1F
Tritanopia (blue-blind)
#89776D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #7f8015;
/* rgb */ color: rgb(127, 128, 21);
/* oklch */ color: oklch(58.0% 0.120 110.2);
Tailwind
colors: {
  custom: {
    50: '#a8a45e',
    500: '#7f8015',
    950: '#000000',
  },
}
SCSS
$custom: #7f8015;
$custom-light: #a8a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8015",
  "rgb": {
    "r": 127,
    "g": 128,
    "b": 21
  },
  "hsl": {
    "h": 60.561,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.58044,
    "c": 0.12022,
    "h": 110.2
  },
  "luminance": 0.20005
}

Semantic roles & 50–950 ramp

primary
#7F8015
secondary
#3D3CB5
accent
#39EF3B
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8015

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

Preview Lab → · Contrast checker → · Palette generator →

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