#7F7312#7F7312

#7F7312 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 55.0% C 0.109 H 101.6°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7F7312
RGBrgb(127, 115, 18)
HSLhsl(53, 75%, 28%)
HSVhsv(53, 86%, 50%)
CMYKcmyk(0%, 9.4%, 85.8%, 50.2%)
CIE-LABlab(48.03, -5.83, 49.80)
CIE-LCHlch(48.03, 50.14, 96.68°)
OKLaboklab(55% -0.022 0.107)
OKLCHoklch(55% 0.109 101.6)
XYZxyz(14.9931, 16.8179, 3.0286)
Luminance0.1682 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7312 #121E7F
analogous
#7F3C12 #7F7312 #547F12
triadic
#7F7312 #127F73 #73127F
tetradic
#7F7312 #127F3C #121E7F #7F1254
square
#7F7312 #127F3C #121E7F #7F1254
split-complementary
#7F7312 #12547F #3C127F
monochromatic
#1B1804 #49420A #7F7312 #B5A41A #E1CD2B

Accessibility & contrast

On white

4.81
#7F7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#7F7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F7312
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7312#FFFFFF#000000##FFFFFF
##7F73121.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#82741B
Tritanopia (blue-blind)
#8A6A62
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7f7312;
/* rgb */ color: rgb(127, 115, 18);
/* oklch */ color: oklch(55.0% 0.109 101.6);
Tailwind
colors: {
  custom: {
    50: '#a89a5b',
    500: '#7f7312',
    950: '#000000',
  },
}
SCSS
$custom: #7f7312;
$custom-light: #a89a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7312",
  "rgb": {
    "r": 127,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 53.394,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.55,
    "c": 0.10925,
    "h": 101.6
  },
  "luminance": 0.16817
}

Semantic roles & 50–950 ramp

primary
#7F7312
secondary
#3846B5
accent
#4BF236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #7F7312

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

Preview Lab → · Contrast checker → · Palette generator →

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