#7F7218#7F7218

#7F7218 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.8% C 0.105 H 100.6°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7F7218
RGBrgb(127, 114, 24)
HSLhsl(52, 68%, 30%)
HSVhsv(52, 81%, 50%)
CMYKcmyk(0%, 10.2%, 81.1%, 50.2%)
CIE-LABlab(47.77, -5.05, 47.69)
CIE-LCHlch(47.77, 47.96, 96.05°)
OKLaboklab(54.8% -0.0193 0.1037)
OKLCHoklch(54.8% 0.105 100.6)
XYZxyz(14.9353, 16.6133, 3.2840)
Luminance0.1661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7218 #18257F
analogous
#7F3E18 #7F7218 #597F18
triadic
#7F7218 #187F72 #72187F
tetradic
#7F7218 #187F3E #18257F #7F1859
square
#7F7218 #187F3E #18257F #7F1859
split-complementary
#7F7218 #18597F #3E187F
monochromatic
#1A1705 #4C440E #7F7218 #B2A022 #D9C538

Accessibility & contrast

On white

4.86
#7F7218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7F7218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7218
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7218#FFFFFF#000000##FFFFFF
##7F72181.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F02
Deuteranopia (green-blind)
#81731F
Tritanopia (blue-blind)
#896961
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f7218;
/* rgb */ color: rgb(127, 114, 24);
/* oklch */ color: oklch(54.8% 0.105 100.6);
Tailwind
colors: {
  custom: {
    50: '#a89a5e',
    500: '#7f7218',
    950: '#000000',
  },
}
SCSS
$custom: #7f7218;
$custom-light: #a89a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7218",
  "rgb": {
    "r": 127,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 52.427,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54802,
    "c": 0.10549,
    "h": 100.6
  },
  "luminance": 0.16613
}

Semantic roles & 50–950 ramp

primary
#7F7218
secondary
#3F4EB3
accent
#53EB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7218

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

Preview Lab → · Contrast checker → · Palette generator →

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