#978125#978125

#978125 is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.7% C 0.111 H 95.1°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#978125
RGBrgb(151, 129, 37)
HSLhsl(48, 61%, 37%)
HSVhsv(48, 75%, 59%)
CMYKcmyk(0%, 14.6%, 75.5%, 40.8%)
CIE-LABlab(54.46, -1.70, 50.00)
CIE-LCHlch(54.46, 50.03, 91.95°)
OKLaboklab(60.69% -0.0098 0.1102)
OKLCHoklch(60.69% 0.111 95.1)
XYZxyz(20.9478, 22.4146, 4.9730)
Luminance0.2241 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#978125 #253B97
analogous
#974825 #978125 #749725
triadic
#978125 #259781 #812597
tetradic
#978125 #259748 #253B97 #972574
square
#978125 #259748 #253B97 #972574
split-complementary
#978125 #257497 #482597
monochromatic
#352D0D #665719 #978125 #C8AB31 #D8C05F

Accessibility & contrast

On white

3.83
#978125 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#978125 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #978125
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##978125#FFFFFF#000000##000000
##9781251.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E15
Deuteranopia (green-blind)
#95852B
Tritanopia (blue-blind)
#A3766F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #978125;
/* rgb */ color: rgb(151, 129, 37);
/* oklch */ color: oklch(60.7% 0.111 95.1);
Tailwind
colors: {
  custom: {
    50: '#b9a566',
    500: '#978125',
    950: '#000000',
  },
}
SCSS
$custom: #978125;
$custom-light: #b9a566;
$custom-dark: #000000;
JSON
{
  "hex": "#978125",
  "rgb": {
    "r": 151,
    "g": 129,
    "b": 37
  },
  "hsl": {
    "h": 48.421,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.60692,
    "c": 0.11068,
    "h": 95.1
  },
  "luminance": 0.22413
}

Semantic roles & 50–950 ramp

primary
#978125
secondary
#5B6EBD
accent
#63E444
background
#FBFAF6
surface
#F7F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #978125

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

Preview Lab → · Contrast checker → · Palette generator →

#978125 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva