#7F8318#7F8318

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

Color values

HEX#7F8318
RGBrgb(127, 131, 24)
HSLhsl(62, 69%, 30%)
HSVhsv(62, 82%, 51%)
CMYKcmyk(3.1%, 0%, 81.7%, 48.6%)
CIE-LABlab(52.74, -14.40, 52.13)
CIE-LCHlch(52.74, 54.08, 105.44°)
OKLaboklab(58.77% -0.0454 0.1132)
OKLCHoklch(58.77% 0.122 111.9)
XYZxyz(17.0342, 20.8110, 3.9836)
Luminance0.2081 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F8318 #1C1883
analogous
#835118 #7F8318 #498318
triadic
#7F8318 #187F83 #83187F
tetradic
#7F8318 #188351 #1C1883 #831849
square
#7F8318 #188351 #1C1883 #831849
split-complementary
#7F8318 #184983 #511883
monochromatic
#1B1C05 #4D4F0F #7F8318 #B1B721 #D5DB3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F8318#FFFFFF#000000##000000
##7F83181.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)
#8E7D00
Deuteranopia (green-blind)
#8E7F22
Tritanopia (blue-blind)
#887A70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7f8318;
/* rgb */ color: rgb(127, 131, 24);
/* oklch */ color: oklch(58.8% 0.122 111.9);
Tailwind
colors: {
  custom: {
    50: '#a8a660',
    500: '#7f8318',
    950: '#000000',
  },
}
SCSS
$custom: #7f8318;
$custom-light: #a8a660;
$custom-dark: #000000;
JSON
{
  "hex": "#7f8318",
  "rgb": {
    "r": 127,
    "g": 131,
    "b": 24
  },
  "hsl": {
    "h": 62.243,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.58767,
    "c": 0.12199,
    "h": 111.9
  },
  "luminance": 0.20811
}

Semantic roles & 50–950 ramp

primary
#7F8318
secondary
#4440B7
accent
#3CEC43
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7F8318

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

Preview Lab → · Contrast checker → · Palette generator →

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