#AF9B2E#AF9B2E

#AF9B2E is a light, vivid yellow. Relative luminance 0.328; OKLCH L 68.8% C 0.126 H 98.5°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#AF9B2E
RGBrgb(175, 155, 46)
HSLhsl(51, 58%, 43%)
HSVhsv(51, 74%, 69%)
CMYKcmyk(0%, 11.4%, 73.7%, 31.4%)
CIE-LABlab(63.96, -4.63, 56.50)
CIE-LCHlch(63.96, 56.69, 94.69°)
OKLaboklab(68.78% -0.0186 0.1248)
OKLCHoklch(68.78% 0.126 98.5)
XYZxyz(29.8951, 32.7554, 7.3320)
Luminance0.3275 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9B2E #2E42AF
analogous
#AF5B2E #AF9B2E #82AF2E
triadic
#AF9B2E #2EAF9B #9B2EAF
tetradic
#AF9B2E #2EAF5B #2E42AF #AF2E82
square
#AF9B2E #2EAF5B #2E42AF #AF2E82
split-complementary
#AF9B2E #2E82AF #5B2EAF
monochromatic
#4E4515 #7F7021 #AF9B2E #D0BB4B #DCCD7B

Accessibility & contrast

On white

2.78
#AF9B2E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.55
#AF9B2E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9B2E
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9B2E#FFFFFF#000000##000000
##AF9B2E1.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB971C
Deuteranopia (green-blind)
#B09E35
Tritanopia (blue-blind)
#BD8F86
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af9b2e;
/* rgb */ color: rgb(175, 155, 46);
/* oklch */ color: oklch(68.8% 0.126 98.5);
Tailwind
colors: {
  custom: {
    50: '#cbb86e',
    500: '#af9b2e',
    950: '#000000',
  },
}
SCSS
$custom: #af9b2e;
$custom-light: #cbb86e;
$custom-dark: #000000;
JSON
{
  "hex": "#af9b2e",
  "rgb": {
    "r": 175,
    "g": 155,
    "b": 46
  },
  "hsl": {
    "h": 50.698,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.68778,
    "c": 0.12619,
    "h": 98.5
  },
  "luminance": 0.32754
}

Semantic roles & 50–950 ramp

primary
#AF9B2E
secondary
#7481C5
accent
#5EE246
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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