#7F7E18#7F7E18

#7F7E18 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.117 H 109.0°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7F7E18
RGBrgb(127, 126, 24)
HSLhsl(59, 68%, 30%)
HSVhsv(59, 81%, 50%)
CMYKcmyk(0%, 0.8%, 81.1%, 50.2%)
CIE-LABlab(51.27, -11.71, 50.82)
CIE-LCHlch(51.27, 52.15, 102.97°)
OKLaboklab(57.59% -0.038 0.1104)
OKLCHoklch(57.59% 0.117 109)
XYZxyz(16.3788, 19.5002, 3.7651)
Luminance0.1950 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7E18 #18197F
analogous
#7F4A18 #7F7E18 #4D7F18
triadic
#7F7E18 #187F7E #7E187F
tetradic
#7F7E18 #187F4A #18197F #7F184D
square
#7F7E18 #187F4A #18197F #7F184D
split-complementary
#7F7E18 #184D7F #4A187F
monochromatic
#1A1A05 #4C4B0E #7F7E18 #B2B122 #D9D838

Accessibility & contrast

On white

4.29
#7F7E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#7F7E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7E18
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7E18#FFFFFF#000000##000000
##7F7E181.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#8A7C21
Tritanopia (blue-blind)
#89756B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7f7e18;
/* rgb */ color: rgb(127, 126, 24);
/* oklch */ color: oklch(57.6% 0.117 109.0);
Tailwind
colors: {
  custom: {
    50: '#a8a35f',
    500: '#7f7e18',
    950: '#000000',
  },
}
SCSS
$custom: #7f7e18;
$custom-light: #a8a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7e18",
  "rgb": {
    "r": 127,
    "g": 126,
    "b": 24
  },
  "hsl": {
    "h": 59.417,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57588,
    "c": 0.11675,
    "h": 109
  },
  "luminance": 0.195
}

Semantic roles & 50–950 ramp

primary
#7F7E18
secondary
#3F41B3
accent
#3EEB3D
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #7F7E18

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

Preview Lab → · Contrast checker → · Palette generator →

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