#7F8013#7F8013

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

Color values

HEX#7F8013
RGBrgb(127, 128, 19)
HSLhsl(61, 74%, 29%)
HSVhsv(61, 85%, 50%)
CMYKcmyk(0.8%, 0%, 85.2%, 49.8%)
CIE-LABlab(51.83, -12.96, 52.75)
CIE-LCHlch(51.83, 54.32, 103.81°)
OKLaboklab(58.04% -0.0418 0.1136)
OKLCHoklch(58.04% 0.121 110.2)
XYZxyz(16.5898, 19.9979, 3.6021)
Luminance0.2000 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8013 #141380
analogous
#804B13 #7F8013 #498013
triadic
#7F8013 #137F80 #80137F
tetradic
#7F8013 #13804B #141380 #801349
square
#7F8013 #13804B #141380 #801349
split-complementary
#7F8013 #134980 #4B1380
monochromatic
#1A1B04 #4A4B0B #7F8013 #B4B51B #DEE02D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #7f8013;
/* rgb */ color: rgb(127, 128, 19);
/* oklch */ color: oklch(58.0% 0.121 110.2);
Tailwind
colors: {
  custom: {
    50: '#a8a45e',
    500: '#7f8013',
    950: '#000000',
  },
}
SCSS
$custom: #7f8013;
$custom-light: #a8a45e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8013",
  "rgb": {
    "r": 127,
    "g": 128,
    "b": 19
  },
  "hsl": {
    "h": 60.55,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.58035,
    "c": 0.12108,
    "h": 110.2
  },
  "luminance": 0.19997
}

Semantic roles & 50–950 ramp

primary
#7F8013
secondary
#3B39B5
accent
#37F139
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8013

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

Preview Lab → · Contrast checker → · Palette generator →

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