#AFA348#AFA348

#AFA348 is a light, moderate yellow. Relative luminance 0.358; OKLCH L 70.7% C 0.113 H 101.9°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#AFA348
RGBrgb(175, 163, 72)
HSLhsl(53, 42%, 48%)
HSVhsv(53, 59%, 69%)
CMYKcmyk(0%, 6.9%, 58.9%, 31.4%)
CIE-LABlab(66.35, -7.31, 47.85)
CIE-LCHlch(66.35, 48.40, 98.69°)
OKLaboklab(70.74% -0.0232 0.1107)
OKLCHoklch(70.74% 0.113 101.9)
XYZxyz(31.9472, 35.7774, 11.3525)
Luminance0.3578 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA348 #4854AF
analogous
#AF6F48 #AFA348 #87AF48
triadic
#AFA348 #48AFA3 #A348AF
tetradic
#AFA348 #48AF6F #4854AF #AF4887
square
#AFA348 #48AF6F #4854AF #AF4887
split-complementary
#AFA348 #4887AF #6F48AF
monochromatic
#585224 #847B36 #AFA348 #C4BA70 #D6CF9B

Accessibility & contrast

On white

2.58
#AFA348 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#AFA348 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA348
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA348#FFFFFF#000000##000000
##AFA3481.002.588.168.16
#FFFFFF2.581.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E3E
Deuteranopia (green-blind)
#B4A44D
Tritanopia (blue-blind)
#BB998F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa348;
/* rgb */ color: rgb(175, 163, 72);
/* oklch */ color: oklch(70.7% 0.113 101.9);
Tailwind
colors: {
  custom: {
    50: '#c9be7e',
    500: '#afa348',
    950: '#000000',
  },
}
SCSS
$custom: #afa348;
$custom-light: #c9be7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa348",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 72
  },
  "hsl": {
    "h": 53.01,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.7074,
    "c": 0.11307,
    "h": 101.9
  },
  "luminance": 0.35776
}

Semantic roles & 50–950 ramp

primary
#AFA348
secondary
#9096C2
accent
#65D256
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#13120A
muted
#82817C

Preview Lab

Preview with #AFA348

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

Preview Lab → · Contrast checker → · Palette generator →

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