#7F8310#7F8310

#7F8310 is a mid, vivid yellow. Relative luminance 0.208; OKLCH L 58.7% C 0.125 H 111.9°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7F8310
RGBrgb(127, 131, 16)
HSLhsl(62, 78%, 29%)
HSVhsv(62, 88%, 51%)
CMYKcmyk(3.1%, 0%, 87.8%, 48.6%)
CIE-LABlab(52.71, -14.66, 54.23)
CIE-LCHlch(52.71, 56.17, 105.13°)
OKLaboklab(58.73% -0.0467 0.1163)
OKLCHoklch(58.73% 0.125 111.9)
XYZxyz(16.9628, 20.7825, 3.6080)
Luminance0.2078 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8310 #141083
analogous
#834E10 #7F8310 #468310
triadic
#7F8310 #107F83 #83107F
tetradic
#7F8310 #10834E #141083 #831046
square
#7F8310 #10834E #141083 #831046
split-complementary
#7F8310 #104683 #4E1083
monochromatic
#1A1B03 #4A4C09 #7F8310 #B4BA17 #DEE529

Accessibility & contrast

On white

4.07
#7F8310 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#7F8310 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F8310
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F8310#FFFFFF#000000##000000
##7F83101.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7C00
Deuteranopia (green-blind)
#8E7F1D
Tritanopia (blue-blind)
#887A6F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7f8310;
/* rgb */ color: rgb(127, 131, 16);
/* oklch */ color: oklch(58.7% 0.125 111.9);
Tailwind
colors: {
  custom: {
    50: '#a8a65d',
    500: '#7f8310',
    950: '#000000',
  },
}
SCSS
$custom: #7f8310;
$custom-light: #a8a65d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8310",
  "rgb": {
    "r": 127,
    "g": 131,
    "b": 16
  },
  "hsl": {
    "h": 62.087,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.58732,
    "c": 0.12533,
    "h": 111.9
  },
  "luminance": 0.20782
}

Semantic roles & 50–950 ramp

primary
#7F8310
secondary
#3B36B9
accent
#33F53A
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8310

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

Preview Lab → · Contrast checker → · Palette generator →

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