#AFA273#AFA273

#AFA273 is a light, moderate yellow. Relative luminance 0.362; OKLCH L 71.2% C 0.065 H 94.5°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#AFA273
RGBrgb(175, 162, 115)
HSLhsl(47, 27%, 57%)
HSVhsv(47, 34%, 69%)
CMYKcmyk(0%, 7.4%, 34.3%, 31.4%)
CIE-LABlab(66.67, -2.46, 26.20)
CIE-LCHlch(66.67, 26.31, 95.35°)
OKLaboklab(71.18% -0.0051 0.0653)
OKLCHoklch(71.18% 0.065 94.5)
XYZxyz(33.6945, 36.1934, 21.4274)
Luminance0.3619 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA273 #7380AF
analogous
#AF8473 #AFA273 #9EAF73
triadic
#AFA273 #73AFA2 #A273AF
tetradic
#AFA273 #73AF84 #7380AF #AF739E
square
#AFA273 #73AF84 #7380AF #AF739E
split-complementary
#AFA273 #739EAF #8473AF
monochromatic
#6B613D #928453 #AFA273 #C5BC9A #DCD6C1

Accessibility & contrast

On white

2.55
#AFA273 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#AFA273 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA273
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA273#FFFFFF#000000##000000
##AFA2731.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#ACA070
Deuteranopia (green-blind)
#AFA475
Tritanopia (blue-blind)
#B89B96
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa273;
/* rgb */ color: rgb(175, 162, 115);
/* oklch */ color: oklch(71.2% 0.065 94.5);
Tailwind
colors: {
  custom: {
    50: '#c8bd9b',
    500: '#afa273',
    950: '#000000',
  },
}
SCSS
$custom: #afa273;
$custom-light: #c8bd9b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa273",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 115
  },
  "hsl": {
    "h": 47,
    "s": 27.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.71183,
    "c": 0.06548,
    "h": 94.5
  },
  "luminance": 0.36192
}

Semantic roles & 50–950 ramp

primary
#AFA273
secondary
#B3B8CB
accent
#79C464
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA273

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

Preview Lab → · Contrast checker → · Palette generator →

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