#7F7A12#7F7A12

#7F7A12 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.116 H 106.6°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7F7A12
RGBrgb(127, 122, 18)
HSLhsl(57, 75%, 28%)
HSVhsv(57, 86%, 50%)
CMYKcmyk(0%, 3.9%, 85.8%, 50.2%)
CIE-LABlab(50.07, -9.73, 51.52)
CIE-LCHlch(50.07, 52.43, 100.69°)
OKLaboklab(56.62% -0.0329 0.1108)
OKLCHoklch(56.62% 0.116 106.6)
XYZxyz(15.8218, 18.4754, 3.3048)
Luminance0.1847 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7A12 #12177F
analogous
#7F4312 #7F7A12 #4D7F12
triadic
#7F7A12 #127F7A #7A127F
tetradic
#7F7A12 #127F43 #12177F #7F124D
square
#7F7A12 #127F43 #12177F #7F124D
split-complementary
#7F7A12 #124D7F #43127F
monochromatic
#1B1A04 #49470A #7F7A12 #B5AD1A #E1D92B

Accessibility & contrast

On white

4.47
#7F7A12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#7F7A12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7A12
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7A12#FFFFFF#000000##000000
##7F7A121.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#87791C
Tritanopia (blue-blind)
#897168
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f7a12;
/* rgb */ color: rgb(127, 122, 18);
/* oklch */ color: oklch(56.6% 0.116 106.6);
Tailwind
colors: {
  custom: {
    50: '#a8a05c',
    500: '#7f7a12',
    950: '#000000',
  },
}
SCSS
$custom: #7f7a12;
$custom-light: #a8a05c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7a12",
  "rgb": {
    "r": 127,
    "g": 122,
    "b": 18
  },
  "hsl": {
    "h": 57.248,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.56622,
    "c": 0.11555,
    "h": 106.6
  },
  "luminance": 0.18475
}

Semantic roles & 50–950 ramp

primary
#7F7A12
secondary
#383EB5
accent
#3FF236
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7A12

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

Preview Lab → · Contrast checker → · Palette generator →

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