#AF942A#AF942A

#AF942A is a light, vivid yellow. Relative luminance 0.305; OKLCH L 67.3% C 0.124 H 94.1°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#AF942A
RGBrgb(175, 148, 42)
HSLhsl(48, 61%, 43%)
HSVhsv(48, 76%, 69%)
CMYKcmyk(0%, 15.4%, 76%, 31.4%)
CIE-LABlab(62.05, -1.03, 56.17)
CIE-LCHlch(62.05, 56.18, 91.05°)
OKLaboklab(67.26% -0.0088 0.1233)
OKLCHoklch(67.26% 0.124 94.1)
XYZxyz(28.6886, 30.4626, 6.5588)
Luminance0.3046 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF942A #2A45AF
analogous
#AF522A #AF942A #87AF2A
triadic
#AF942A #2AAF94 #942AAF
tetradic
#AF942A #2AAF52 #2A45AF #AF2A87
square
#AF942A #2AAF52 #2A45AF #AF2A87
split-complementary
#AF942A #2A87AF #522AAF
monochromatic
#4C4112 #7E6A1E #AF942A #D2B544 #DEC975

Accessibility & contrast

On white

2.96
#AF942A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.09
#AF942A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF942A
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF942A#FFFFFF#000000##000000
##AF942A1.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#A49117
Deuteranopia (green-blind)
#AB9930
Tritanopia (blue-blind)
#BD887F
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #af942a;
/* rgb */ color: rgb(175, 148, 42);
/* oklch */ color: oklch(67.3% 0.124 94.1);
Tailwind
colors: {
  custom: {
    50: '#cbb36c',
    500: '#af942a',
    950: '#000000',
  },
}
SCSS
$custom: #af942a;
$custom-light: #cbb36c;
$custom-dark: #000000;
JSON
{
  "hex": "#af942a",
  "rgb": {
    "r": 175,
    "g": 148,
    "b": 42
  },
  "hsl": {
    "h": 47.82,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.67257,
    "c": 0.12363,
    "h": 94.1
  },
  "luminance": 0.30461
}

Semantic roles & 50–950 ramp

primary
#AF942A
secondary
#6F81C6
accent
#64E443
background
#FDFAF6
surface
#FAF5EC
border
#D3CFC7
text
#141007
muted
#837F7A

Preview Lab

Preview with #AF942A

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

Preview Lab → · Contrast checker → · Palette generator →

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