#798125#798125

#798125 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 57.9% C 0.114 H 114.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#798125
RGBrgb(121, 129, 37)
HSLhsl(65, 55%, 33%)
HSVhsv(65, 71%, 51%)
CMYKcmyk(6.2%, 0%, 71.3%, 49.4%)
CIE-LABlab(51.72, -15.43, 46.39)
CIE-LCHlch(51.72, 48.89, 108.40°)
OKLaboklab(57.85% -0.0468 0.1037)
OKLCHoklch(57.85% 0.114 114.3)
XYZxyz(16.0698, 19.8993, 4.7443)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798125 #2D2581
analogous
#815B25 #798125 #4B8125
triadic
#798125 #257981 #812579
tetradic
#798125 #25815B #2D2581 #81254B
square
#798125 #25815B #2D2581 #81254B
split-complementary
#798125 #254B81 #5B2581
monochromatic
#20220A #4C5117 #798125 #A6B133 #C3CE53

Accessibility & contrast

On white

4.22
#798125 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#798125 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798125
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798125#FFFFFF#000000##000000
##7981251.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A16
Deuteranopia (green-blind)
#8A7C2C
Tritanopia (blue-blind)
#81796F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #798125;
/* rgb */ color: rgb(121, 129, 37);
/* oklch */ color: oklch(57.9% 0.114 114.3);
Tailwind
colors: {
  custom: {
    50: '#a2a566',
    500: '#798125',
    950: '#000000',
  },
}
SCSS
$custom: #798125;
$custom-light: #a2a566;
$custom-dark: #000000;
JSON
{
  "hex": "#798125",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 37
  },
  "hsl": {
    "h": 65.217,
    "s": 55.422,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57852,
    "c": 0.11375,
    "h": 114.3
  },
  "luminance": 0.19899
}

Semantic roles & 50–950 ramp

primary
#798125
secondary
#5850B2
accent
#49DF56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798125

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

Preview Lab → · Contrast checker → · Palette generator →

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