#798128#798128

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

Color values

HEX#798128
RGBrgb(121, 129, 40)
HSLhsl(65, 53%, 33%)
HSVhsv(65, 69%, 51%)
CMYKcmyk(6.2%, 0%, 69%, 49.4%)
CIE-LABlab(51.75, -15.25, 45.17)
CIE-LCHlch(51.75, 47.67, 108.65°)
OKLaboklab(57.88% -0.0459 0.1017)
OKLCHoklch(57.88% 0.112 114.3)
XYZxyz(16.1188, 19.9190, 5.0027)
Luminance0.1992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798128 #302881
analogous
#815C28 #798128 #4C8128
triadic
#798128 #287981 #812879
tetradic
#798128 #28815C #302881 #81284C
square
#798128 #28815C #302881 #81284C
split-complementary
#798128 #284C81 #5C2881
monochromatic
#21240B #4D521A #798128 #A5B036 #C1CB58

Accessibility & contrast

On white

4.21
#798128 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##798128#FFFFFF#000000##000000
##7981281.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798128;
/* rgb */ color: rgb(121, 129, 40);
/* oklch */ color: oklch(57.9% 0.112 114.3);
Tailwind
colors: {
  custom: {
    50: '#a2a567',
    500: '#798128',
    950: '#000000',
  },
}
SCSS
$custom: #798128;
$custom-light: #a2a567;
$custom-dark: #000000;
JSON
{
  "hex": "#798128",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 40
  },
  "hsl": {
    "h": 65.393,
    "s": 52.663,
    "l": 33.137
  },
  "oklch": {
    "l": 0.57877,
    "c": 0.11155,
    "h": 114.3
  },
  "luminance": 0.19919
}

Semantic roles & 50–950 ramp

primary
#798128
secondary
#5D54B0
accent
#4CDC59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798128

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

Preview Lab → · Contrast checker → · Palette generator →

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