#798225#798225

#798225 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.1% C 0.115 H 114.8°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#798225
RGBrgb(121, 130, 37)
HSLhsl(66, 56%, 33%)
HSVhsv(66, 72%, 51%)
CMYKcmyk(6.9%, 0%, 71.5%, 49%)
CIE-LABlab(52.02, -15.96, 46.68)
CIE-LCHlch(52.02, 49.34, 108.88°)
OKLaboklab(58.09% -0.0482 0.1043)
OKLCHoklch(58.09% 0.115 114.8)
XYZxyz(16.2021, 20.1641, 4.7884)
Luminance0.2016 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798225 #2E2582
analogous
#825C25 #798225 #4B8225
triadic
#798225 #257982 #822579
tetradic
#798225 #25825C #2E2582 #82254B
square
#798225 #25825C #2E2582 #82254B
split-complementary
#798225 #254B82 #5C2582
monochromatic
#20230A #4D5217 #798225 #A5B233 #C2CE53

Accessibility & contrast

On white

4.17
#798225 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#798225 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798225
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798225#FFFFFF#000000##000000
##7982251.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B16
Deuteranopia (green-blind)
#8B7D2C
Tritanopia (blue-blind)
#817A70
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798225;
/* rgb */ color: rgb(121, 130, 37);
/* oklch */ color: oklch(58.1% 0.115 114.8);
Tailwind
colors: {
  custom: {
    50: '#a2a666',
    500: '#798225',
    950: '#000000',
  },
}
SCSS
$custom: #798225;
$custom-light: #a2a666;
$custom-dark: #000000;
JSON
{
  "hex": "#798225",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 37
  },
  "hsl": {
    "h": 65.806,
    "s": 55.689,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58092,
    "c": 0.11495,
    "h": 114.8
  },
  "luminance": 0.20164
}

Semantic roles & 50–950 ramp

primary
#798225
secondary
#5A50B2
accent
#49DF57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798225

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

Preview Lab → · Contrast checker → · Palette generator →

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