#7F7018#7F7018

#7F7018 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.3% C 0.104 H 98.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7F7018
RGBrgb(127, 112, 24)
HSLhsl(51, 68%, 30%)
HSVhsv(51, 81%, 50%)
CMYKcmyk(0%, 11.8%, 81.1%, 50.2%)
CIE-LABlab(47.19, -3.92, 47.17)
CIE-LCHlch(47.19, 47.33, 94.75°)
OKLaboklab(54.35% -0.0161 0.1026)
OKLCHoklch(54.35% 0.104 98.9)
XYZxyz(14.7122, 16.1671, 3.2096)
Luminance0.1617 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7018 #18277F
analogous
#7F3D18 #7F7018 #5B7F18
triadic
#7F7018 #187F70 #70187F
tetradic
#7F7018 #187F3D #18277F #7F185B
square
#7F7018 #187F3D #18277F #7F185B
split-complementary
#7F7018 #185B7F #3D187F
monochromatic
#1A1705 #4C430E #7F7018 #B29D22 #D9C238

Accessibility & contrast

On white

4.96
#7F7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7F7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7018
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7018#FFFFFF#000000##FFFFFF
##7F70181.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D03
Deuteranopia (green-blind)
#80721E
Tritanopia (blue-blind)
#8A6760
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f7018;
/* rgb */ color: rgb(127, 112, 24);
/* oklch */ color: oklch(54.3% 0.104 98.9);
Tailwind
colors: {
  custom: {
    50: '#a8985d',
    500: '#7f7018',
    950: '#000000',
  },
}
SCSS
$custom: #7f7018;
$custom-light: #a8985d;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7018",
  "rgb": {
    "r": 127,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 51.262,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54345,
    "c": 0.10385,
    "h": 98.9
  },
  "luminance": 0.16166
}

Semantic roles & 50–950 ramp

primary
#7F7018
secondary
#3F50B3
accent
#56EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7F7018

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

Preview Lab → · Contrast checker → · Palette generator →

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