#798452#798452

#798452 is a mid, moderate yellow-green. Relative luminance 0.212; OKLCH L 59.2% C 0.072 H 118.8°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#798452
RGBrgb(121, 132, 82)
HSLhsl(73, 23%, 42%)
HSVhsv(73, 38%, 52%)
CMYKcmyk(8.3%, 0%, 37.9%, 48.2%)
CIE-LABlab(53.14, -12.72, 25.67)
CIE-LCHlch(53.14, 28.65, 116.35°)
OKLaboklab(59.16% -0.0347 0.0632)
OKLCHoklch(59.16% 0.072 118.8)
XYZxyz(17.6594, 21.1768, 11.1382)
Luminance0.2118 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798452 #5D5284
analogous
#847652 #798452 #608452
triadic
#798452 #527984 #845279
tetradic
#798452 #528476 #5D5284 #845260
square
#798452 #528476 #5D5284 #845260
split-complementary
#798452 #526084 #765284
monochromatic
#343923 #565E3B #798452 #99A56E #B4BC94

Accessibility & contrast

On white

4.01
#798452 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#798452 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798452
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798452#FFFFFF#000000##000000
##7984521.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7F4E
Deuteranopia (green-blind)
#897F54
Tritanopia (blue-blind)
#7E7F77
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #798452;
/* rgb */ color: rgb(121, 132, 82);
/* oklch */ color: oklch(59.2% 0.072 118.8);
Tailwind
colors: {
  custom: {
    50: '#a0a783',
    500: '#798452',
    950: '#000000',
  },
}
SCSS
$custom: #798452;
$custom-light: #a0a783;
$custom-dark: #000000;
JSON
{
  "hex": "#798452",
  "rgb": {
    "r": 121,
    "g": 132,
    "b": 82
  },
  "hsl": {
    "h": 73.2,
    "s": 23.364,
    "l": 41.961
  },
  "oklch": {
    "l": 0.59158,
    "c": 0.07211,
    "h": 118.8
  },
  "luminance": 0.21177
}

Semantic roles & 50–950 ramp

primary
#798452
secondary
#9088AA
accent
#68C07B
background
#F9FAF8
surface
#F2F4EF
border
#CCCECA
text
#0F0F0A
muted
#7E7F7C

Preview Lab

Preview with #798452

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

Preview Lab → · Contrast checker → · Palette generator →

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