#7D7F18#7D7F18

#7D7F18 is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.6% C 0.118 H 110.8°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7D7F18
RGBrgb(125, 127, 24)
HSLhsl(61, 68%, 30%)
HSVhsv(61, 81%, 50%)
CMYKcmyk(1.6%, 0%, 81.1%, 50.2%)
CIE-LABlab(51.39, -13.17, 50.86)
CIE-LCHlch(51.39, 52.54, 104.52°)
OKLaboklab(57.64% -0.0419 0.1106)
OKLCHoklch(57.64% 0.118 110.8)
XYZxyz(16.2123, 19.6051, 3.7941)
Luminance0.1961 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D7F18 #1A187F
analogous
#7F4E18 #7D7F18 #4A7F18
triadic
#7D7F18 #187D7F #7F187D
tetradic
#7D7F18 #187F4E #1A187F #7F184A
square
#7D7F18 #187F4E #1A187F #7F184A
split-complementary
#7D7F18 #184A7F #4E187F
monochromatic
#191A05 #4A4C0E #7D7F18 #B0B222 #D6D938

Accessibility & contrast

On white

4.27
#7D7F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#7D7F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D7F18
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D7F18#FFFFFF#000000##000000
##7D7F181.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8A7C21
Tritanopia (blue-blind)
#86766C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7d7f18;
/* rgb */ color: rgb(125, 127, 24);
/* oklch */ color: oklch(57.6% 0.118 110.8);
Tailwind
colors: {
  custom: {
    50: '#a6a35f',
    500: '#7d7f18',
    950: '#000000',
  },
}
SCSS
$custom: #7d7f18;
$custom-light: #a6a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d7f18",
  "rgb": {
    "r": 125,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 61.165,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57642,
    "c": 0.11827,
    "h": 110.8
  },
  "luminance": 0.19605
}

Semantic roles & 50–950 ramp

primary
#7D7F18
secondary
#423FB3
accent
#3DEB40
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7D7F18

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

Preview Lab → · Contrast checker → · Palette generator →

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