#7F7918#7F7918

#7F7918 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.4% C 0.112 H 105.7°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7F7918
RGBrgb(127, 121, 24)
HSLhsl(57, 68%, 30%)
HSVhsv(57, 81%, 50%)
CMYKcmyk(0%, 4.7%, 81.1%, 50.2%)
CIE-LABlab(49.80, -8.97, 49.51)
CIE-LCHlch(49.80, 50.32, 100.26°)
OKLaboklab(56.42% -0.0303 0.1076)
OKLCHoklch(56.42% 0.112 105.7)
XYZxyz(15.7553, 18.2533, 3.5573)
Luminance0.1825 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F7918 #181E7F
analogous
#7F4618 #7F7918 #527F18
triadic
#7F7918 #187F79 #79187F
tetradic
#7F7918 #187F46 #181E7F #7F1852
square
#7F7918 #187F46 #181E7F #7F1852
split-complementary
#7F7918 #18527F #46187F
monochromatic
#1A1905 #4C480E #7F7918 #B2AA22 #D9D038

Accessibility & contrast

On white

4.52
#7F7918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#7F7918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F7918
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F7918#FFFFFF#000000##000000
##7F79181.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#877820
Tritanopia (blue-blind)
#897067
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f7918;
/* rgb */ color: rgb(127, 121, 24);
/* oklch */ color: oklch(56.4% 0.112 105.7);
Tailwind
colors: {
  custom: {
    50: '#a89f5f',
    500: '#7f7918',
    950: '#000000',
  },
}
SCSS
$custom: #7f7918;
$custom-light: #a89f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7f7918",
  "rgb": {
    "r": 127,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 56.505,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.56419,
    "c": 0.1118,
    "h": 105.7
  },
  "luminance": 0.18253
}

Semantic roles & 50–950 ramp

primary
#7F7918
secondary
#3F46B3
accent
#47EB3D
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7F7918

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

Preview Lab → · Contrast checker → · Palette generator →

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