#AF9A2C#AF9A2C

#AF9A2C is a light, vivid yellow. Relative luminance 0.324; OKLCH L 68.5% C 0.127 H 98.0°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#AF9A2C
RGBrgb(175, 154, 44)
HSLhsl(50, 60%, 43%)
HSVhsv(50, 75%, 69%)
CMYKcmyk(0%, 12%, 74.9%, 31.4%)
CIE-LABlab(63.68, -4.19, 56.98)
CIE-LCHlch(63.68, 57.13, 94.20°)
OKLaboklab(68.55% -0.0175 0.1254)
OKLCHoklch(68.55% 0.127 98)
XYZxyz(29.6909, 32.4085, 7.0740)
Luminance0.3241 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9A2C #2C41AF
analogous
#AF592C #AF9A2C #82AF2C
triadic
#AF9A2C #2CAF9A #9A2CAF
tetradic
#AF9A2C #2CAF59 #2C41AF #AF2C82
square
#AF9A2C #2CAF59 #2C41AF #AF2C82
split-complementary
#AF9A2C #2C82AF #592CAF
monochromatic
#4D4413 #7E6F20 #AF9A2C #D1BB47 #DDCD78

Accessibility & contrast

On white

2.81
#AF9A2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#AF9A2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9A2C
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9A2C#FFFFFF#000000##000000
##AF9A2C1.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9618
Deuteranopia (green-blind)
#AF9D33
Tritanopia (blue-blind)
#BD8E85
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af9a2c;
/* rgb */ color: rgb(175, 154, 44);
/* oklch */ color: oklch(68.5% 0.127 98.0);
Tailwind
colors: {
  custom: {
    50: '#cbb76d',
    500: '#af9a2c',
    950: '#000000',
  },
}
SCSS
$custom: #af9a2c;
$custom-light: #cbb76d;
$custom-dark: #000000;
JSON
{
  "hex": "#af9a2c",
  "rgb": {
    "r": 175,
    "g": 154,
    "b": 44
  },
  "hsl": {
    "h": 50.382,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.68549,
    "c": 0.12665,
    "h": 98
  },
  "luminance": 0.32407
}

Semantic roles & 50–950 ramp

primary
#AF9A2C
secondary
#727FC5
accent
#5EE345
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141107
muted
#82807A

Preview Lab

Preview with #AF9A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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