#AF9F2C#AF9F2C

#AF9F2C is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.6% C 0.131 H 101.1°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#AF9F2C
RGBrgb(175, 159, 44)
HSLhsl(53, 60%, 43%)
HSVhsv(53, 75%, 69%)
CMYKcmyk(0%, 9.1%, 74.9%, 31.4%)
CIE-LABlab(65.04, -6.86, 58.27)
CIE-LCHlch(65.04, 58.67, 96.71°)
OKLaboklab(69.63% -0.0251 0.1282)
OKLCHoklch(69.63% 0.131 101.1)
XYZxyz(30.5334, 34.0935, 7.3548)
Luminance0.3409 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9F2C #2C3CAF
analogous
#AF5E2C #AF9F2C #7DAF2C
triadic
#AF9F2C #2CAF9F #9F2CAF
tetradic
#AF9F2C #2CAF5E #2C3CAF #AF2C7D
square
#AF9F2C #2CAF5E #2C3CAF #AF2C7D
split-complementary
#AF9F2C #2C7DAF #5E2CAF
monochromatic
#4D4613 #7E7320 #AF9F2C #D1C047 #DDD178

Accessibility & contrast

On white

2.69
#AF9F2C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#AF9F2C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9F2C
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9F2C#FFFFFF#000000##000000
##AF9F2C1.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A16
Deuteranopia (green-blind)
#B3A134
Tritanopia (blue-blind)
#BD9389
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af9f2c;
/* rgb */ color: rgb(175, 159, 44);
/* oklch */ color: oklch(69.6% 0.131 101.1);
Tailwind
colors: {
  custom: {
    50: '#cbbb6e',
    500: '#af9f2c',
    950: '#000000',
  },
}
SCSS
$custom: #af9f2c;
$custom-light: #cbbb6e;
$custom-dark: #000000;
JSON
{
  "hex": "#af9f2c",
  "rgb": {
    "r": 175,
    "g": 159,
    "b": 44
  },
  "hsl": {
    "h": 52.672,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.69626,
    "c": 0.13061,
    "h": 101.1
  },
  "luminance": 0.34092
}

Semantic roles & 50–950 ramp

primary
#AF9F2C
secondary
#727CC5
accent
#58E345
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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