#798231#798231

#798231 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.2% C 0.105 H 115.1°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#798231
RGBrgb(121, 130, 49)
HSLhsl(67, 45%, 35%)
HSVhsv(67, 62%, 51%)
CMYKcmyk(6.9%, 0%, 62.3%, 49%)
CIE-LABlab(52.12, -15.14, 41.56)
CIE-LCHlch(52.12, 44.23, 110.02°)
OKLaboklab(58.2% -0.0446 0.0954)
OKLCHoklch(58.2% 0.105 115.1)
XYZxyz(16.4225, 20.2522, 5.9491)
Luminance0.2025 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798231 #3A3182
analogous
#826331 #798231 #508231
triadic
#798231 #317982 #823179
tetradic
#798231 #318263 #3A3182 #823150
square
#798231 #318263 #3A3182 #823150
split-complementary
#798231 #315082 #633182
monochromatic
#26290F #505620 #798231 #A2AE42 #BBC668

Accessibility & contrast

On white

4.16
#798231 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#798231 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798231
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798231#FFFFFF#000000##000000
##7982311.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7C28
Deuteranopia (green-blind)
#8A7D36
Tritanopia (blue-blind)
#807B71
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798231;
/* rgb */ color: rgb(121, 130, 49);
/* oklch */ color: oklch(58.2% 0.105 115.1);
Tailwind
colors: {
  custom: {
    50: '#a2a66d',
    500: '#798231',
    950: '#000000',
  },
}
SCSS
$custom: #798231;
$custom-light: #a2a66d;
$custom-dark: #000000;
JSON
{
  "hex": "#798231",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 49
  },
  "hsl": {
    "h": 66.667,
    "s": 45.251,
    "l": 35.098
  },
  "oklch": {
    "l": 0.58203,
    "c": 0.10535,
    "h": 115.1
  },
  "luminance": 0.20252
}

Semantic roles & 50–950 ramp

primary
#798231
secondary
#6A62AD
accent
#53D561
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #798231

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

Preview Lab → · Contrast checker → · Palette generator →

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