#7D8F1B#7D8F1B

#7D8F1B is a mid, vivid yellow. Relative luminance 0.241; OKLCH L 61.5% C 0.135 H 118.6°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7D8F1B
RGBrgb(125, 143, 27)
HSLhsl(69, 68%, 33%)
HSVhsv(69, 81%, 56%)
CMYKcmyk(12.6%, 0%, 81.1%, 43.9%)
CIE-LABlab(56.17, -21.43, 54.22)
CIE-LCHlch(56.17, 58.30, 111.57°)
OKLaboklab(61.49% -0.0645 0.1183)
OKLCHoklch(61.49% 0.135 118.6)
XYZxyz(18.4782, 24.0842, 4.7120)
Luminance0.2408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D8F1B #2D1B8F
analogous
#8F671B #7D8F1B #438F1B
triadic
#7D8F1B #1B7D8F #8F1B7D
tetradic
#7D8F1B #1B8F67 #2D1B8F #8F1B43
square
#7D8F1B #1B8F67 #2D1B8F #8F1B43
split-complementary
#7D8F1B #1B438F #671B8F
monochromatic
#232808 #505C11 #7D8F1B #AAC225 #C5DC48

Accessibility & contrast

On white

3.61
#7D8F1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#7D8F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D8F1B
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D8F1B#FFFFFF#000000##000000
##7D8F1B1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#978727
Tritanopia (blue-blind)
#85877A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #7d8f1b;
/* rgb */ color: rgb(125, 143, 27);
/* oklch */ color: oklch(61.5% 0.135 118.6);
Tailwind
colors: {
  custom: {
    50: '#a6af63',
    500: '#7d8f1b',
    950: '#000000',
  },
}
SCSS
$custom: #7d8f1b;
$custom-light: #a6af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7d8f1b",
  "rgb": {
    "r": 125,
    "g": 143,
    "b": 27
  },
  "hsl": {
    "h": 69.31,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61486,
    "c": 0.13475,
    "h": 118.6
  },
  "luminance": 0.24084
}

Semantic roles & 50–950 ramp

primary
#7D8F1B
secondary
#5A48BE
accent
#3DEB58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7D8F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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