#7F7512#7F7512

#7F7512 is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.5% C 0.111 H 103.1°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7F7512
RGBrgb(127, 117, 18)
HSLhsl(54, 75%, 28%)
HSVhsv(54, 86%, 50%)
CMYKcmyk(0%, 7.9%, 85.8%, 50.2%)
CIE-LABlab(48.61, -6.95, 50.29)
CIE-LCHlch(48.61, 50.77, 97.87°)
OKLaboklab(55.46% -0.0252 0.1081)
OKLCHoklch(55.46% 0.111 103.1)
XYZxyz(15.2236, 17.2790, 3.1054)
Luminance0.1728 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7512 #121C7F
analogous
#7F3E12 #7F7512 #527F12
triadic
#7F7512 #127F75 #75127F
tetradic
#7F7512 #127F3E #121C7F #7F1252
square
#7F7512 #127F3E #121C7F #7F1252
split-complementary
#7F7512 #12527F #3E127F
monochromatic
#1B1904 #49440A #7F7512 #B5A61A #E1D02B

Accessibility & contrast

On white

4.71
#7F7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7F7512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7512
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7512#FFFFFF#000000##FFFFFF
##7F75121.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#84751B
Tritanopia (blue-blind)
#896C63
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7f7512;
/* rgb */ color: rgb(127, 117, 18);
/* oklch */ color: oklch(55.5% 0.111 103.1);
Tailwind
colors: {
  custom: {
    50: '#a89c5c',
    500: '#7f7512',
    950: '#000000',
  },
}
SCSS
$custom: #7f7512;
$custom-light: #a89c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7512",
  "rgb": {
    "r": 127,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 54.495,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.55461,
    "c": 0.11096,
    "h": 103.1
  },
  "luminance": 0.17278
}

Semantic roles & 50–950 ramp

primary
#7F7512
secondary
#3844B5
accent
#47F236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7F7512

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

Preview Lab → · Contrast checker → · Palette generator →

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