#AFA248#AFA248

#AFA248 is a light, moderate yellow. Relative luminance 0.354; OKLCH L 70.5% C 0.112 H 101.2°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#AFA248
RGBrgb(175, 162, 72)
HSLhsl(52, 42%, 48%)
HSVhsv(52, 59%, 69%)
CMYKcmyk(0%, 7.4%, 58.9%, 31.4%)
CIE-LABlab(66.08, -6.78, 47.54)
CIE-LCHlch(66.08, 48.02, 98.12°)
OKLaboklab(70.52% -0.0217 0.11)
OKLCHoklch(70.52% 0.112 101.2)
XYZxyz(31.7704, 35.4237, 11.2936)
Luminance0.3542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA248 #4855AF
analogous
#AF6E48 #AFA248 #88AF48
triadic
#AFA248 #48AFA2 #A248AF
tetradic
#AFA248 #48AF6E #4855AF #AF4888
square
#AFA248 #48AF6E #4855AF #AF4888
split-complementary
#AFA248 #4888AF #6E48AF
monochromatic
#585224 #847A36 #AFA248 #C4BA70 #D6CF9B

Accessibility & contrast

On white

2.60
#AFA248 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#AFA248 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA248
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA248#FFFFFF#000000##000000
##AFA2481.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09E3F
Deuteranopia (green-blind)
#B4A34C
Tritanopia (blue-blind)
#BB988E
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa248;
/* rgb */ color: rgb(175, 162, 72);
/* oklch */ color: oklch(70.5% 0.112 101.2);
Tailwind
colors: {
  custom: {
    50: '#c9bd7e',
    500: '#afa248',
    950: '#000000',
  },
}
SCSS
$custom: #afa248;
$custom-light: #c9bd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa248",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 72
  },
  "hsl": {
    "h": 52.427,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.70524,
    "c": 0.11213,
    "h": 101.2
  },
  "luminance": 0.35423
}

Semantic roles & 50–950 ramp

primary
#AFA248
secondary
#9097C2
accent
#66D256
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA248

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

Preview Lab → · Contrast checker → · Palette generator →

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